Skip to content

Commit bd0bdbc

Browse files
committed
Rearrange error message
1 parent 53db5f6 commit bd0bdbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/easycoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3052,7 +3052,7 @@ const EasyCoder_Core = {
30523052
content = JSON.parse(propertyContent);
30533053
content = content[property];
30543054
} catch (err) {
3055-
program.runtimeError(program[program.pc].lino, `Can't parse '${propertyContent}': ${err.message}`);
3055+
program.runtimeError(program[program.pc].lino, `${err.message}: ${propertyContent}`);
30563056
}
30573057
if (content == undefined) {
30583058
content = ``;

js/easycoder/Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3052,7 +3052,7 @@ const EasyCoder_Core = {
30523052
content = JSON.parse(propertyContent);
30533053
content = content[property];
30543054
} catch (err) {
3055-
program.runtimeError(program[program.pc].lino, `Can't parse '${propertyContent}': ${err.message}`);
3055+
program.runtimeError(program[program.pc].lino, `${err.message}: ${propertyContent}`);
30563056
}
30573057
if (content == undefined) {
30583058
content = ``;

0 commit comments

Comments
 (0)