@forge/sql
3.0.263.0.26-experimental-04cc2b9
out/utils/error-handling.js~
out/utils/error-handling.jsModified+2−3
Index: package/out/utils/error-handling.js
===================================================================
--- package/out/utils/error-handling.js
+++ package/out/utils/error-handling.js
@@ -1,7 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.checkResponseError = exports.isForgeError = void 0;
+exports.isForgeError = isForgeError;
+exports.checkResponseError = checkResponseError;
const errorCodes_1 = require("../errorCodes");
const errors_1 = require("../errors");
function isForgeError(body) {
if (typeof body === 'object' && body !== null) {
@@ -10,9 +11,8 @@
}
}
return false;
}
-exports.isForgeError = isForgeError;
async function checkResponseError(response, message) {
if (response.ok) {
return;
}
@@ -41,5 +41,4 @@
message: message || 'Unexpected error in Forge SQL API request',
context: { responseText }
});
}
-exports.checkResponseError = checkResponseError;