From deb048b8316e114eea0189d6407168fffcdc6fdc Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 28 Jun 2010 12:15:34 +0000 Subject: [PATCH] .theide: Console app run in console now prints the exitcode git-svn-id: svn://ultimatepp.org/upp/trunk@2514 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Debug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uppsrc/ide/Debug.cpp b/uppsrc/ide/Debug.cpp index 1b42933d5..2a9277716 100644 --- a/uppsrc/ide/Debug.cpp +++ b/uppsrc/ide/Debug.cpp @@ -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();