Skip to content

Commit eda4959

Browse files
committed
Runtime: fix missing return
1 parent ae4457e commit eda4959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/js/unix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function caml_strerror(errno) {
230230
//If: browser
231231
function caml_strerror(errno) {
232232
const code = unix_error[errno];
233-
code || "Unknown error " + errno;
233+
return code || "Unknown error " + errno;
234234
}
235235

236236
//Provides: unix_error_message

0 commit comments

Comments
 (0)