show error instead of exit code if error info available - re: issue #1
Refactor error handling

Prefer returning long error messages instead of error codes only.