Commit a72b59c7 authored by Samuel GAIST's avatar Samuel GAIST

Merge branch 'improve_storage_error_message' into 'master'

Improve AstractStorage error message in constructor

See merge request !62
parents 81e9ed49 3ed7f46f
Pipeline #34119 failed with stages
in 14 minutes and 26 seconds
......@@ -226,7 +226,11 @@ class AbstractStorage(object):
if not all(
[type(attr) == str for attr in [self.asset_type, self.asset_folder]]
):
raise TypeError("asset_type and asset_folder must be configure properly")
raise TypeError(
"asset_type and asset_folder must be configured properly\n"
"asset_type: {}\n"
"asset_folder: {}".format(self.asset_type, self.asset_folder)
)
self.path = path
self.json = File(self.path + ".json")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment