diff --git a/src/commands/CmdReport.cpp b/src/commands/CmdReport.cpp index 43b2853a..b11f629c 100644 --- a/src/commands/CmdReport.cpp +++ b/src/commands/CmdReport.cpp @@ -109,7 +109,11 @@ int CmdReport ( // Run the extensions. std::vector output; - extensions.callExtension (script, split (input, '\n'), output); + int rc = extensions.callExtension (script, split (input, '\n'), output); + if (rc != 0 && output.size () == 0) + { + throw format ("'{1}' returned {2} without producing output.", script, rc); + } // Display the output. for (auto& line : output)