@shopify/shopify-app-remix
Version:
Shopify Remix - to simplify the building of Shopify Apps with Remix
15 lines (11 loc) • 422 B
JavaScript
;
var jsxRuntime = require('react/jsx-runtime');
function errorBoundary(error) {
if (error.constructor.name === 'ErrorResponse' ||
error.constructor.name === 'ErrorResponseImpl') {
return (jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: error.data || 'Handling response' } }));
}
throw error;
}
exports.errorBoundary = errorBoundary;
//# sourceMappingURL=error.js.map