diff --git a/src/oiiotool/oiiotool.cpp b/src/oiiotool/oiiotool.cpp index bb571d4f92..91144671b7 100644 --- a/src/oiiotool/oiiotool.cpp +++ b/src/oiiotool/oiiotool.cpp @@ -7329,6 +7329,12 @@ handle_sequence(Oiiotool& ot, int argc, const char** argv) nfilenames = frame_numbers[0].size(); } + if (!nfilenames) { + // No filenames matched the first wildcard pattern + ot.warning("", "No frame number or views matched the wildcards"); + return false; + } + // Make sure frame_numbers[0] has the canonical frame number list if (sequence_args.size() && frame_numbers[0].empty()) frame_numbers[0] = frame_numbers[sequence_args[0]]; diff --git a/testsuite/oiiotool-control/ref/out.txt b/testsuite/oiiotool-control/ref/out.txt index e3e0fecb21..b4514c0e28 100644 --- a/testsuite/oiiotool-control/ref/out.txt +++ b/testsuite/oiiotool-control/ref/out.txt @@ -281,7 +281,10 @@ Sequence -5--2: -5 Sequence -5--2: -4 Sequence -5--2: -3 Sequence -5--2: -2 -oiiotool WARNING : oiiotool produced no output. Did you forget -o? +oiiotool WARNING : No frame number or views matched the wildcards +oiiotool ERROR: read : File does not exist: "notfound.#.jpg" +Full command line was: +> oiiotool notfound.#.jpg -o alsonotfound.#.jpg oiiotool ERROR : Not all sequence specifications matched: copyA.#.jpg (10 frames) vs. copyC.1-5#.jpg (5 frames) Full command line was: >