global: better fail log

This commit is contained in:
Jakub Jezek 2023-01-03 22:03:26 +01:00
parent f40495ebbf
commit e8af8559fd
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -42,7 +42,7 @@ def get_colorspace_data(config_path):
config_path = Path(config_path)
if not config_path.is_file():
raise IOError("Input path should be `config.ocio` file")
raise IOError(f"Input path `{config_path}` should be `config.ocio` file")
config = ocio.Config().CreateFromFile(str(config_path))