mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-01 15:52:41 -06:00
.theide: Console app run in console now prints the exitcode
git-svn-id: svn://ultimatepp.org/upp/trunk@2514 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
56ccbedb93
commit
deb048b831
1 changed files with 3 additions and 2 deletions
|
|
@ -78,6 +78,7 @@ void Ide::BuildAndExecute()
|
|||
if(!runexternal)
|
||||
cmdline << '\"' << h->GetHostPath(target) << "\" ";
|
||||
cmdline << ToSystemCharset(runarg);
|
||||
int exitcode;
|
||||
switch(runmode) {
|
||||
case RUN_WINDOW:
|
||||
HideBottom();
|
||||
|
|
@ -87,8 +88,8 @@ void Ide::BuildAndExecute()
|
|||
ShowConsole();
|
||||
PutConsole(String().Cat() << "Executing: " << cmdline);
|
||||
console.Sync();
|
||||
h->ExecuteWithInput(cmdline);
|
||||
PutConsole("Finished in " + GetPrintTime(time));
|
||||
exitcode = h->ExecuteWithInput(cmdline);
|
||||
PutConsole("Finished in " + GetPrintTime(time) + ", exit code: " + AsString(exitcode));
|
||||
break;
|
||||
case RUN_FILE: {
|
||||
HideBottom();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue