Browse Source

catch nif load error

pull/30/head
benoitc 12 years ago
parent
commit
852db2e568
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/jiffy.erl

+ 2
- 1
src/jiffy.erl View File

@ -93,7 +93,8 @@ init() ->
Path ->
Path
end,
erlang:load_nif(filename:join(PrivDir, "jiffy"), 0).
catch(erlang:load_nif(filename:join(PrivDir, "jiffy"), 0)),
ok.
not_loaded(Line) ->

Loading…
Cancel
Save