From afcc79f8a5d427fce475ab497d9c46cd192abfdb Mon Sep 17 00:00:00 2001
From: Matthew McGill <mhollismcgill@gmail.com>
Date: Tue, 20 Nov 2018 19:41:13 +0000
Subject: [PATCH] Displays error if arg parsing fails

Former-commit-id: dfdc4b136b20a82e39a1c3f3d6c2ffe51a8455f2
---
 tools/thanos/thanos.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/thanos/thanos.cpp b/tools/thanos/thanos.cpp
index fe1eeca1c..c48c0679a 100644
--- a/tools/thanos/thanos.cpp
+++ b/tools/thanos/thanos.cpp
@@ -299,6 +299,11 @@ int ThanosPlugin_t::executeStep(TransformStep_t& the_step, const bool are_debugg
 	const int parse_retval = the_step.parseArgs(step_args);
 	if(parse_retval != 0)
 	{
+		*real_cout<<"Done.  Command failed! ***************************************"<<endl;
+		if(!step_optional)
+		{
+			*real_cout<<"ERROR: The "<<the_step.getStepName()<<" step is necessary, but failed.  Exiting early."<<endl;	
+		}
 		return parse_retval;
 	}
 
-- 
GitLab