Skip to content

Commit 5a808fb

Browse files
Fix ocioconvert invalid bidepth handling (#2323)
Signed-off-by: zial <zhenlai1013@gmail.com> Co-authored-by: Doug Walker <doug.walker@autodesk.com>
1 parent c2bd98f commit 5a808fb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/apps/ocioconvert/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ int main(int argc, const char **argv)
141141
}
142142
else
143143
{
144-
throw OCIO::Exception("Unsupported output bitdepth, must be uint8, uint16, half or float.");
144+
std::cerr << "ERROR: Unsupported output bitdepth, must be uint8, uint16, half or float." << std::endl;
145+
ap.usage();
146+
exit(1);
145147
}
146148
}
147149

0 commit comments

Comments
 (0)