Permalink
Browse files

Simpler exception when the NIF library is not loaded

  • Loading branch information...
1 parent 2dc787b commit 3f3fcfe106b241b74b1dc38f56a1c9aa1d231448 @fdmanana fdmanana committed Apr 3, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/snappy.erl
View
@@ -38,16 +38,16 @@ init() ->
compress(_IoList) ->
- exit({snappy_nif_not_loaded, module, ?MODULE, line, ?LINE}).
+ exit(snappy_nif_not_loaded).
decompress(_IoList) ->
- exit({snappy_nif_not_loaded, module, ?MODULE, line, ?LINE}).
+ exit(snappy_nif_not_loaded).
get_uncompressed_length(_IoList) ->
- exit({snappy_nif_not_loaded, module, ?MODULE, line, ?LINE}).
+ exit(snappy_nif_not_loaded).
is_valid_compressed_buffer(_IoList) ->
- exit({snappy_nif_not_loaded, module, ?MODULE, line, ?LINE}).
+ exit(snappy_nif_not_loaded).

0 comments on commit 3f3fcfe

Please sign in to comment.