Errors should not be strings but of class Error.