Add a general check for returned errors.

Many of the plugin services will return an error string. This check checks to
see if an error is present, and if it is it prints out the error message.