Include the error reason when loading a nif fails
Include the error reason when loading a nif fails

When a nifs `on_load` function returns a non-ok value loading fails today silently without showing the returned error reason. 

This is especially sad when the `on_load` callback is calling `erlang:load_nif/2` as it lasts statement which many nif `on_load` callbacks do. `erlang:load_nif/2` typically returns quite helpful error tuples that help to identify the reasons for why the nif failed loading. This change makes the error message appear in the output and in debug messages when debugging is enabled. 

```erlang
-on_load(init/0).

init() ->
    SoName = filename:join(code:priv_dir(?APPNAME), ?LIBNAME),
    erlang:load_nif(SoName, 0).
```
dgud/otp,dumbbell/otp,jj1bdx/otp,bjorng/otp,g-andrade/otp,potatosalad/otp,vinoski/otp,jj1bdx/otp,dumbbell/otp,g-andrade/otp,emacsmirror/erlang,dumbbell/otp,erlang/otp,emacsmirror/erlang,g-andrade/otp,rlipscombe/otp,g-andrade/otp,emacsmirror/erlang,rlipscombe/otp,dgud/otp,dgud/otp,dumbbell/otp,jj1bdx/otp,vinoski/otp,dgud/otp,rlipscombe/otp,isvilen/otp,bjorng/otp,dgud/otp,isvilen/otp,bjorng/otp,potatosalad/otp,vinoski/otp,bjorng/otp,rlipscombe/otp,potatosalad/otp,dgud/otp,dgud/otp,g-andrade/otp,jj1bdx/otp,g-andrade/otp,g-andrade/otp,isvilen/otp,bjorng/otp,mikpe/otp,dgud/otp,erlang/otp,rlipscombe/otp,emacsmirror/erlang,dumbbell/otp,potatosalad/otp,mikpe/otp,isvilen/otp,erlang/otp,dumbbell/otp,isvilen/otp,isvilen/otp,isvilen/otp,erlang/otp,dumbbell/otp,isvilen/otp,erlang/otp,mikpe/otp,emacsmirror/erlang,potatosalad/otp,bjorng/otp,dgud/otp,emacsmirror/erlang,emacsmirror/erlang,isvilen/otp,g-andrade/otp,potatosalad/otp,vinoski/otp,rlipscombe/otp,emacsmirror/erlang,erlang/otp,vinoski/otp,vinoski/otp,rlipscombe/otp,vinoski/otp,g-andrade/otp,bjorng/otp,mikpe/otp,potatosalad/otp,jj1bdx/otp,dumbbell/otp,emacsmirror/erlang,erlang/otp,dumbbell/otp,rlipscombe/otp,jj1bdx/otp,jj1bdx/otp,rlipscombe/otp,emacsmirror/erlang,vinoski/otp,erlang/otp,g-andrade/otp,bjorng/otp,erlang/otp,mikpe/otp,jj1bdx/otp,erlang/otp,bjorng/otp,bjorng/otp,vinoski/otp,rlipscombe/otp,dgud/otp,isvilen/otp,mikpe/otp,potatosalad/otp,mikpe/otp,vinoski/otp,dumbbell/otp,potatosalad/otp,mikpe/otp,potatosalad/otp,jj1bdx/otp,jj1bdx/otp,mikpe/otp,mikpe/otp