VirtualBox

Ignore:
Timestamp:
Aug 22, 2013 12:47:00 AM (11 years ago)
Author:
vboxsync
Message:

vboxapi.py: Started on error abstrations (testsuite needs errIsDeadInterface).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r47979 r47981  
    205205
    206206def printErr(_ctx, e):
    207     print colored(str(e), 'red')
     207    oVBoxMgr = _ctx['global'];
     208    if oVBoxMgr.errIsOurXcptKind(e):
     209        print colored('%s: %s' % (oVBoxMgr.errToString(e), oVBoxMgr.errGetMessage(e)), 'red');
     210    else:
     211        print colored(str(e), 'red')
    208212
    209213def reportError(_ctx, progress):
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette