tool/cmd_debug.cpp
changeset 1136 a0982873d655
parent 1130 bb1c11adb2db
child 1137 a73c0f54be42
--- a/tool/cmd_debug.cpp	Wed Jul 23 07:29:00 2008 +0000
+++ b/tool/cmd_debug.cpp	Wed Jul 23 08:06:10 2008 +0000
@@ -36,8 +36,8 @@
     
     if (commandArgs.size() != 1) {
         stringstream err;
-        err << "'debug' takes exactly one argument!";
-        throw MasterDeviceException(err.str());
+        err << "'" << commandName << "' takes exactly one argument!";
+        throw InvalidUsageException(err);
     }
 
     str << commandArgs[0];
@@ -47,7 +47,7 @@
     if (str.fail()) {
         stringstream err;
         err << "Invalid debug level '" << commandArgs[0] << "'!";
-        throw MasterDeviceException(err.str());
+        throw InvalidUsageException(err);
     }
 
     masterDev.open(MasterDevice::ReadWrite);