rc-js-common
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -10,12 +10,6 @@ "use strict"; | ||
var _debug_1 = require("rc-js-util/bin/debug/_debug"); | ||
var unknownError = new serializable_error_1.SerializableError(500, new error_body_1.ErrorBody(new localization_1.Localization(error_tx_keys_1.ErrorTxKeys.UnknownError), e_error_type_1.EErrorType.UnknownError), undefined); | ||
function getUnknownError() { | ||
if (DEBUG_MODE) { | ||
return new serializable_error_1.SerializableError(500, new error_body_1.ErrorBody(new localization_1.Localization(error_tx_keys_1.ErrorTxKeys.UnknownError), e_error_type_1.EErrorType.UnknownError), _debug_1._Debug.getStackTrace()); | ||
} | ||
else { | ||
return unknownError; | ||
} | ||
return new serializable_error_1.SerializableError(500, new error_body_1.ErrorBody(new localization_1.Localization(error_tx_keys_1.ErrorTxKeys.UnknownError), e_error_type_1.EErrorType.UnknownError), _debug_1._Debug.getStackTrace()); | ||
} | ||
exports.getUnknownError = getUnknownError; | ||
//# sourceMappingURL=get-unknown-error.js.map |
{ | ||
"name": "rc-js-common", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106746
1551