slightly better parser messages for breakifs and failed deletes.

This commit is contained in:
thrust26 2017-10-10 14:48:36 +02:00
parent 3cc42b1dc5
commit d702829ed3
1 changed files with 7 additions and 4 deletions

View File

@ -122,7 +122,7 @@ string DebuggerParser::run(const string& command)
}
}
return "No such command (try \"help\")";
return red("No such command (try \"help\")");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -914,7 +914,10 @@ void DebuggerParser::executeDefine()
// "delbreakif"
void DebuggerParser::executeDelbreakif()
{
debugger.cpuDebug().m6502().delCondBreak(args[0]);
if (debugger.cpuDebug().m6502().delCondBreak(args[0]))
commandResult << "removed breakif " << Base::toString(args[0]);
else
commandResult << red("no such breakif");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -942,7 +945,7 @@ void DebuggerParser::executeDeltrap()
commandResult << "removed trap " << Base::toString(index);
}
else
commandResult << "no such trap";
commandResult << red("no such trap");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -956,7 +959,7 @@ void DebuggerParser::executeDelwatch()
commandResult << "removed watch";
}
else
commandResult << "no such watch";
commandResult << red("no such watch");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -