diff --git a/src/commands/CmdExport.cpp b/src/commands/CmdExport.cpp index 4ec50dbee..4242969b4 100644 --- a/src/commands/CmdExport.cpp +++ b/src/commands/CmdExport.cpp @@ -71,7 +71,7 @@ int CmdExport::execute (std::string& output) } if (selectedReport.empty ()) { - Context::getContext ().error("Unable to find report that matches '" + words[0] + "'."); + throw format("Unable to find report that matches '{1}'.", words[0]); } }