aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-09-30 18:05:25 +0200
committerSverker Eriksson <[email protected]>2016-10-14 14:29:16 +0200
commitcb987678ff56142029758e0e84fa97fa90003b4a (patch)
treec8743a4d6e8f7e0c862e390ae599ccdcd14b0e44
parent870d49f0f8d383e62ea231700089933c4cf8fe2a (diff)
downloadotp-cb987678ff56142029758e0e84fa97fa90003b4a.tar.gz
otp-cb987678ff56142029758e0e84fa97fa90003b4a.tar.bz2
otp-cb987678ff56142029758e0e84fa97fa90003b4a.zip
kernel: Fix strange 'ok' return value from code_server
when failing to load native code.
-rw-r--r--lib/kernel/src/code_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index 90ecb22074..418b0c50e1 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -1136,7 +1136,7 @@ try_load_module_2(File, Mod, Bin, From, Architecture,
try_load_module_3(File, Mod, Bin, From, Architecture, St);
Error ->
error_msg("Native loading of ~ts failed: ~p\n", [File,Error]),
- {reply,ok,St}
+ {reply,{error,Error},St}
end.
try_load_module_3(File, Mod, Bin, From, _Architecture, St0) ->