mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
exit instead of return false on image failure
This commit is contained in:
parent
dc8ad860c6
commit
0151ec934c
@ -48,7 +48,7 @@ handle_args(ProgramBase::Args &args) {
|
|||||||
|
|
||||||
if (!_image.read(args[0])) {
|
if (!_image.read(args[0])) {
|
||||||
nout << "Unable to read image file " << args[0] << ".\n";
|
nout << "Unable to read image file " << args[0] << ".\n";
|
||||||
return false;
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user