- Timestamp:
- Aug 27, 2010, 2:41:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/TclThreadManager.cc
r7219 r7228 439 439 // It's a query to the CommandExecutor 440 440 TclThreadManager::debug("TclThread_query -> CE: " + command); 441 bool success; 442 output = CommandExecutor::query(command, &success, false); 443 if (!success) 444 TclThreadManager::error("Error: Can't execute command \"" + command + "\"!"); 441 int error; 442 output = CommandExecutor::query(command, &error, false); 443 switch (error) 444 { 445 case CommandExecutor::Error: TclThreadManager::error("Error: Can't execute command \"" + command + "\", command doesn't exist. (T)"); break; 446 case CommandExecutor::Incomplete: TclThreadManager::error("Error: Can't execute command \"" + command + "\", not enough arguments given. (T)"); break; 447 case CommandExecutor::Deactivated: TclThreadManager::error("Error: Can't execute command \"" + command + "\", command is not active. (T)"); break; 448 case CommandExecutor::Denied: TclThreadManager::error("Error: Can't execute command \"" + command + "\", access denied. (T)"); break; 449 } 445 450 } 446 451 else
Note: See TracChangeset
for help on using the changeset viewer.