We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03b785 commit d65276bCopy full SHA for d65276b
src/components/EditorHeader/Modal/Modal.jsx
@@ -148,17 +148,16 @@ export default function Modal({
148
database: database === DB.GENERIC ? importDb : database,
149
});
150
} catch (err) {
151
+ let message = err.message;
152
+ if (err.location) {
153
+ message = err.name + " [Ln " + err.location.start.line + ", Col " + err.location.start.column + "]: " + err.message;
154
+ }
155
+
156
setError({
157
type: STATUS.ERROR,
- message:
- err.name +
- " [Ln " +
- err.location.start.line +
- ", Col " +
158
- err.location.start.column +
159
- "]: " +
160
- err.message,
+ message
161
162
return;
163
}
164
0 commit comments