Allow errors object to not always be an array