- Migrate code to Swift 2.0
- Change to throw error instead returning
nil
.
- Change to return just empty NSData instead nil if given data is empty
- Log error message if compression/decompression is failed.
- [Note] This is a temporaly improvement. I'll migrate functions to throw NSError when Swift 2.0 becomes stable.