Skip to content

Commit

Permalink
bsys/bob: Explicit raised Flamingo error if something went wrong call…
Browse files Browse the repository at this point in the history
…ing extenal function
  • Loading branch information
obiwac committed Dec 20, 2024
1 parent 492be6e commit 8c3fcad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsys/bob/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static int external_fn_cb(flamingo_t* flamingo, flamingo_val_t* callable, void*
bool consumed = false;

if (bob_class->call(callable, args, rv, &consumed) < 0) {
return -1;
return flamingo_raise_error(flamingo, "Something went wrong when calling the '%.*s' external function", (int) name_size, name);
}

if (consumed) {
Expand Down

0 comments on commit 8c3fcad

Please sign in to comment.