Skip to content

Commit 61148af

Browse files
Update utils/custom-loaders/html-tag-jsx-loader.js
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 246faee commit 61148af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/custom-loaders/html-tag-jsx-loader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,10 @@ module.exports = function htmlTagJsxLoader(source) {
278278

279279
callback(null, output.code, output.map);
280280
} catch (error) {
281-
callback(error);
281+
const errorMessage = `html-tag-jsx-loader failed to process ${this.resourcePath}: ${error.message}`;
282+
const enhancedError = new Error(errorMessage);
283+
enhancedError.stack = error.stack;
284+
callback(enhancedError);
282285
}
283286
};
284287

0 commit comments

Comments
 (0)