Expect first argument to sentry.error to be an instance of Error