Return the exception message when invoking command