@calm-xyz/core 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -196,7 +196,7 @@ async function request(config) {
|
|
|
196
196
|
if (!response.ok) {
|
|
197
197
|
const envelope = await response.json().catch(() => void 0);
|
|
198
198
|
const code = envelope?.error?.code;
|
|
199
|
-
let message = "Something went wrong.
|
|
199
|
+
let message = "Something went wrong.";
|
|
200
200
|
if (typeof envelope?.error?.message === "string") message = envelope.error.message;
|
|
201
201
|
if (isErrorCode(code)) throw new ApiError({
|
|
202
202
|
code,
|