diff --git a/lib/private/Deferred.js b/lib/private/Deferred.js index f7c4966..75e60dd 100644 --- a/lib/private/Deferred.js +++ b/lib/private/Deferred.js @@ -964,17 +964,9 @@ function proceedToInterceptsAndChecks (errCbArg, resultCbArg, extraCbArgs, self, }, self._omen), resultCbArg, extraCbArgs, self, _cb, handleUncaughtException); } else { - // Otherwise, we'll just consider this a standard unexpected error: - return proceedToFinalAfterExecLC(flaverr({ - name: - 'UsageError', - message: - 'Encountered unexpected error in `.'+matchingUserlandLC.type+'()` handler. '+ - flaverr.parseOrBuildError(err).message+'\n'+ - ' [?] See https://sailsjs.com/support for help.', - raw: - err - }, self._omen), resultCbArg, extraCbArgs, self, _cb, handleUncaughtException); + // Otherwise, we'll allow this error through unscathed and treat it just like + // any unexpected error that might have been thrown by the implementation. + return proceedToFinalAfterExecLC(err, resultCbArg, extraCbArgs, self, _cb, handleUncaughtException); } }//•