Make error messages (or error codes) available to API users
Issue #346
new
Currently, errors are printed to the console but from the API we can't get why there is a failure. It would nice to have some way to either get that text, or an error code, or some other way to get more information about the failure.