From: <ro...@us...> - 2012-06-22 17:58:12
|
Revision: 2737 http://nscldaq.svn.sourceforge.net/nscldaq/?rev=2737&view=rev Author: ron-fox Date: 2012-06-22 17:58:06 +0000 (Fri, 22 Jun 2012) Log Message: ----------- Provide ring name in error messages from usage. Modified Paths: -------------- branches/nscldaq-10.1-004-development/base/dataflow/CRingCommand.cpp Modified: branches/nscldaq-10.1-004-development/base/dataflow/CRingCommand.cpp =================================================================== --- branches/nscldaq-10.1-004-development/base/dataflow/CRingCommand.cpp 2012-06-22 17:01:34 UTC (rev 2736) +++ branches/nscldaq-10.1-004-development/base/dataflow/CRingCommand.cpp 2012-06-22 17:58:06 UTC (rev 2737) @@ -497,14 +497,18 @@ } catch (CException& reason) { string result; - result += "Failed to get usage info:\n"; + result += "Failed to get usage info:"; + result += name; + result = " \n"; result += string(reason.ReasonText()); interp.setResult(result); return TCL_ERROR; } catch (string msg) { string result; - result += "Failed to get usage info:\n"; + result += "Failed to get usage info: "; + result += name; + result = " \n"; result += msg; result += '\n'; interp.setResult(result); @@ -512,7 +516,9 @@ } catch (const char* pmsg) { string result; - result += "Failed to get usage info\n"; + result += "Failed to get usage info "; + result += name; + result = " \n"; result += pmsg; result += '\n'; interp.setResult(result); @@ -520,7 +526,10 @@ } catch (...) { string result; - result += "Failed to to get usage info\n"; + result += "Failed to to get usage info "; + result += name; + result = " \n"; + interp.setResult(result); return TCL_ERROR; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |