Skip to content
Permalink
Browse files
Simpler exception when the NIF library is not loaded
  • Loading branch information
fdmanana committed Apr 3, 2011
1 parent 2dc787b commit 3f3fcfe106b241b74b1dc38f56a1c9aa1d231448
Showing 1 changed file with 4 additions and 4 deletions.
@@ -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.