@injectivelabs/exceptions
Advanced tools
Comparing version 1.14.5-beta.2 to 1.14.5-beta.3
@@ -6,3 +6,4 @@ import { ConcreteException } from '../exception'; | ||
constructor(error: Error, context?: ErrorContext); | ||
parse(): void; | ||
} | ||
//# sourceMappingURL=GrpcUnaryRequestException.d.ts.map |
@@ -12,4 +12,11 @@ "use strict"; | ||
} | ||
parse() { | ||
const { message } = this; | ||
if (message.toLowerCase().includes('response closed without headers')) { | ||
this.setMessage("Hang tight, we're under heavy load, refresh the page in a few seconds."); | ||
this.setOriginalMessage(`Hang tight, we're experiencing higher than usual demand, and are doing everything we can to improve performance. In the meantime, try refreshing the page until our code monkeys at our headquarters fix this.`); | ||
} | ||
} | ||
} | ||
exports.GrpcUnaryRequestException = GrpcUnaryRequestException; | ||
//# sourceMappingURL=GrpcUnaryRequestException.js.map |
@@ -99,5 +99,5 @@ "use strict"; | ||
} | ||
return parsedMessage; | ||
return message; | ||
}; | ||
exports.mapMetamaskMessage = mapMetamaskMessage; | ||
//# sourceMappingURL=maps.js.map |
@@ -6,3 +6,4 @@ import { ConcreteException } from '../exception'; | ||
constructor(error: Error, context?: ErrorContext); | ||
parse(): void; | ||
} | ||
//# sourceMappingURL=GrpcUnaryRequestException.d.ts.map |
@@ -9,3 +9,10 @@ import { ConcreteException } from '../exception'; | ||
} | ||
parse() { | ||
const { message } = this; | ||
if (message.toLowerCase().includes('response closed without headers')) { | ||
this.setMessage("Hang tight, we're under heavy load, refresh the page in a few seconds."); | ||
this.setOriginalMessage(`Hang tight, we're experiencing higher than usual demand, and are doing everything we can to improve performance. In the meantime, try refreshing the page until our code monkeys at our headquarters fix this.`); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=GrpcUnaryRequestException.js.map |
@@ -96,4 +96,4 @@ import { chainErrorMessagesMap, chainModuleCodeErrorMessagesMap, } from '../messages'; | ||
} | ||
return parsedMessage; | ||
return message; | ||
}; | ||
//# sourceMappingURL=maps.js.map |
{ | ||
"name": "@injectivelabs/exceptions", | ||
"description": "List of exceptions that can be reused throughout Injective's projects.", | ||
"version": "1.14.5-beta.2", | ||
"version": "1.14.5-beta.3", | ||
"sideEffects": false, | ||
@@ -40,3 +40,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "4fcef3e79df0dcdd45839f425a20fb9e17637520" | ||
"gitHead": "c4ee8eafbea5f5ebe4af3447eb8d97c05bf2be44" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
592455
7437