basho/bitcask — pull request #39 by jtuple (2012-03-04 02:17:19+00:00)
Title: Fix incorrect NIF error tuples

Certain Bitcask NIFs would return `{error, {error, Reason}}` on failure rather than the expected `{error, Reason}` tuple. This would cause certain pattern matches to fail, such as the following:
https://github.com/basho/bitcask/blob/31b782aa4096d6084e57108f1ee0035be583dc50/src/bitcask.erl#L808

This pull-request fixes this error tuples.