gnome-shell/js/misc
Philip Chimento 8421846cff js: Add utility to improve error message formatting
Previously, when we formatted SyntaxErrors with toString(), they
wouldn't display the file/line/column where the syntax error occurred.
This adds a utility function that performs a more comprehensive
formatting that displays location information for SyntaxErrors, as well
as the .cause property of the error if it is present. This formatting is
equivalent to what we do in gjs-console when logging an error.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3041>
(cherry picked from commit a1a320d3d1)
2024-01-06 22:44:07 +01:00
..
animationUtils.js js: Port to modules 2023-08-06 13:02:49 +02:00
config.js.in config: Add missing semicolon 2023-11-30 18:32:05 +01:00
dateUtils.js js: Port to modules 2023-08-06 13:02:49 +02:00
dbusUtils.js js: Port Config to ESM 2023-08-10 17:42:23 +00:00
dependencies.js js: Port Config to ESM 2023-08-10 17:42:23 +00:00
errorUtils.js js: Add utility to improve error message formatting 2024-01-06 22:44:07 +01:00
extensionUtils.js js: Port to modules 2023-08-06 13:02:49 +02:00
fileUtils.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
gnomeSession.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
history.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
ibusManager.js ibusManager: Add missing environment variables required to launch ibus-daemon 2023-09-14 16:02:29 +00:00
inputMethod.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
introspect.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
jsParse.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
keyboardManager.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
loginManager.js cleanup: Fixup wrong JSDoc comments 2023-08-09 15:10:38 +00:00
meson.build build: Remove Soup2 support 2023-05-26 19:05:22 +00:00
modemManager.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
objectManager.js js: Port to modules 2023-08-06 13:02:49 +02:00
params.js js: Port to modules 2023-08-06 13:02:49 +02:00
parentalControlsManager.js cleanup: Remove spaces in object literals 2023-08-09 15:10:37 +00:00
permissionStore.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
signals.js js: Port to modules 2023-08-06 13:02:49 +02:00
signalTracker.js cleanup: Fixup wrong JSDoc comments 2023-08-09 15:10:38 +00:00
smartcardManager.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
systemActions.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
util.js misc: Fetch environment from launch context before spawn_async() 2023-11-30 18:34:08 +01:00
weather.js weather: Prevent setting Geoclue source as location name 2023-08-16 19:17:21 +00:00