File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -670,6 +670,7 @@ main(int argc, const char* argv[])
670
670
longestname = std::max (longestname, s.length ());
671
671
longestname = std::min (longestname, (size_t )40 );
672
672
673
+ int returncode = EXIT_SUCCESS;
673
674
long long totalsize = 0 ;
674
675
for (auto && s : filenames) {
675
676
auto in = ImageInput::open (s);
@@ -678,6 +679,7 @@ main(int argc, const char* argv[])
678
679
if (err.empty ())
679
680
err = Strutil::sprintf (" Could not open \" %s\" " , s);
680
681
std::cerr << " iinfo ERROR: " << err << " \n " ;
682
+ returncode = EXIT_FAILURE;
681
683
continue ;
682
684
}
683
685
ImageSpec spec = in->spec ();
@@ -692,5 +694,5 @@ main(int argc, const char* argv[])
692
694
printf (" Total size: %.2f MB\n " , t);
693
695
}
694
696
695
- return 0 ;
697
+ return returncode ;
696
698
}
You can’t perform that action at this time.
0 commit comments