Skip to content

Commit

Permalink
Better error message for unsupported compression types
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleflo committed Sep 15, 2019
1 parent 7211ec9 commit 51ff4b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpyq.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def decompress(data):
elif compression_type == 16:
return bz2.decompress(data[1:])
else:
raise RuntimeError("Unsupported compression type.")
msg = "Unsupported compression type: {}".format(compression_type)
raise RuntimeError(msg)

hash_entry = self.get_hash_table_entry(filename)
if hash_entry is None:
Expand Down

0 comments on commit 51ff4b8

Please sign in to comment.