Avoid returning 'null[]' after unhandled exceptions

Some exceptions that bubble to the top do not have messages,
so this stops those exceptions from causing 'null []' to be returned
to the user. Instead the class of the exception and a default error
message are shown when there is no other message to show from
the exception.

Change-Id: I44d856e5c4600f0a1606971ade8fbc0b0bb46a88
Reviewed-on: http://fulliautomatix.ics.uci.edu:8443/190
Reviewed-by: Chris Hillery <ceej@lambda.nu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
2 files changed