Skip to content

Commit f422724

Browse files
authored
Merge pull request #3 from 0branch/browse-trap
FIX: REBNATIVE(browse) should trap on OS_BROWSE failure, not success.
2 parents f249af5 + 5613dab commit f422724

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
@@ -516,11 +516,7 @@ static REBSER *Read_All_File(char *fname)
516516

517517
r = OS_BROWSE(url, 0);
518518

519-
if (r == 0) {
520-
return R_UNSET;
521-
} else {
522-
Trap1(RE_CALL_FAIL, Make_OS_Error(r));
523-
}
519+
if (r == 0) Trap1(RE_CALL_FAIL, Make_OS_Error(r));
524520

525521
return R_UNSET;
526522
}

0 commit comments

Comments
 (0)