Skip to content

Commit 8df4d47

Browse files
authored
Merge pull request #1663 from McSinyx/dobytes-err-keep
Keep dobytes' error string
2 parents 2a33080 + 1c372fb commit 8df4d47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/run.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char
122122
janet_loop();
123123
if (fiber) {
124124
janet_gcunroot(janet_wrap_fiber(fiber));
125-
ret = fiber->last_value;
125+
if (!errflags)
126+
ret = fiber->last_value;
126127
}
127128
}
128129
#endif

0 commit comments

Comments
 (0)