Skip to content

Commit da41628

Browse files
committed
FIX: Pass none as the error argument when an extension returns an error without a message
1 parent 8efc267 commit da41628

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/f-extension.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,9 @@ x*/ int Do_Callback(REBSER *obj, u32 name, RXIARG *args, RXIARG *result)
550550
VAL_TAIL(val) = len;
551551
COPY_MEM(VAL_BIN_HEAD(val), errmsg, len);
552552
}
553+
else {
554+
SET_NONE(val);
555+
}
553556
Trap1(RE_COMMAND_FAIL, val);
554557
}
555558
break;

0 commit comments

Comments
 (0)