Skip to content

Commit 5613dab

Browse files
committed
FIX: REBNATIVE(browse) should trap on OS_BROWSE failure, not success.
1 parent 259b252 commit 5613dab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/core/n-io.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,7 @@ static REBSER *Read_All_File(char *fname)
513513

514514
r = OS_BROWSE(url, 0);
515515

516-
if (r == 0) {
517-
return R_UNSET;
518-
} else {
519-
Trap1(RE_CALL_FAIL, Make_OS_Error(r));
520-
}
516+
if (r == 0) Trap1(RE_CALL_FAIL, Make_OS_Error(r));
521517

522518
return R_UNSET;
523519
}

0 commit comments

Comments
 (0)