60 # TP: We have to cry, because root has killed/interrupted vmm |
60 # TP: We have to cry, because root has killed/interrupted vmm |
61 # with Ctrl+C or Ctrl+D. |
61 # with Ctrl+C or Ctrl+D. |
62 w_err(EX_USER_INTERRUPT, '', _(u'Ouch!'), '') |
62 w_err(EX_USER_INTERRUPT, '', _(u'Ouch!'), '') |
63 except errors.VMMError, err: |
63 except errors.VMMError, err: |
64 if err.code != DATABASE_ERROR: |
64 if err.code != DATABASE_ERROR: |
|
65 if handler.has_warnings(): |
|
66 w_err(0, _(u'Warnings:'), *handler.get_warnings()) |
65 w_err(err.code, _(u'Error: %s') % err.msg) |
67 w_err(err.code, _(u'Error: %s') % err.msg) |
66 w_err(err.code, unicode(err.msg, ENCODING, 'replace')) |
68 w_err(err.code, unicode(err.msg, ENCODING, 'replace')) |
67 except (BadOptionError, ConfigValueError), err: |
69 except (BadOptionError, ConfigValueError), err: |
68 w_err(INVALID_ARGUMENT, _(u'Error: %s') % err) |
70 w_err(INVALID_ARGUMENT, _(u'Error: %s') % err) |
69 except NoSectionError, err: |
71 except NoSectionError, err: |