1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 08:15:13 +00:00

Add optional base to scan-number.

This commit is contained in:
Calvin Rose
2021-10-10 09:07:56 -05:00
parent 3e5bd460a5
commit 684f3ac172
2 changed files with 11 additions and 9 deletions

View File

@@ -81,11 +81,7 @@ int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char
ret = janet_cstringv(e);
int32_t line = parser.line;
int32_t col = parser.column;
if (line > 0 && col > 0) {
janet_eprintf("%s:%d:%d: parse error: %s\n", sourcePath, line, col, e);
} else {
janet_eprintf("%s: parse error: %s\n", sourcePath, e);
}
janet_eprintf("%s:%d:%d: parse error: %s\n", sourcePath, line, col, e);
done = 1;
break;
}