OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

ocioconvert silently errors out when given invalid bitdepth running on Windows

Open KevinJW opened this issue 1 year ago • 2 comments

When calling ocioconvert from a terminal on windows and an invalid bitdepth is given, it does not output the intended error message:

https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/main/src/apps/ocioconvert/main.cpp#L142

This is because the throw is not within a try/catch block and exceptions produce no output unless you do something with them.

Suggest turning this into a simple std:cerr message and exit() with an appropriate error code.

KevinJW avatar Dec 24 '24 12:12 KevinJW

I want to work on it. How can I start?

Ayush-Mittal10 avatar Dec 24 '24 17:12 Ayush-Mittal10

@Ayush-Mittal10 , thank you for offering to work on this bug.

There is some info for contributors in the documentation: https://opencolorio.readthedocs.io/en/latest/guides/contributing/contributing.html

doug-walker avatar Jan 02 '25 17:01 doug-walker