Allow errors to be a string or array