Skip to content

ocioconvert silently errors out when given invalid bitdepth running on Windows #2110

Description

@KevinJW

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueStandard label for new developers to locate good issues to tackle to learn about OCIO development.help wantedIssues that the TSC has decided are worth implementing, but don't currently have the dev resources.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions