command module: fix empty error message

the message attribute of an IOError instance seems to be always empty -
therefore just use the string representation of the error.