Throw a Generic error object instead of calling die