summaryrefslogtreecommitdiff
path: root/packages/fpmkunit
diff options
context:
space:
mode:
authorjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-02-08 09:53:47 +0000
committerjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-02-08 09:53:47 +0000
commitf9cf5d0de1cbe3413556715187f490469539dcb9 (patch)
tree00f202cbc6062fb5967d13f83369130270ce40a3 /packages/fpmkunit
parentb4164a255461485ee509797d0b2590dc8cfc83e9 (diff)
downloadfpc-f9cf5d0de1cbe3413556715187f490469539dcb9.tar.gz
* Show arguments of command in the error message if the command failed
* Make sure that compile-info is shown so that parsing the compiler-output makes sense git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16893 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fpmkunit')
-rw-r--r--packages/fpmkunit/src/fpmkunit.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/fpmkunit/src/fpmkunit.pp b/packages/fpmkunit/src/fpmkunit.pp
index e1ce2bee45..79253753ae 100644
--- a/packages/fpmkunit/src/fpmkunit.pp
+++ b/packages/fpmkunit/src/fpmkunit.pp
@@ -1232,7 +1232,7 @@ begin
if Verbose then
P.CommandLine := Path + ' ' + ComLine
else
- P.CommandLine := Path + ' -vq ' + ComLine;
+ P.CommandLine := Path + ' -viq ' + ComLine;
P.Options := [poUsePipes];
@@ -3406,6 +3406,7 @@ end;
procedure TBuildEngine.ExecuteCommand(const Cmd,Args : String; IgnoreError : Boolean = False);
Var
E : Integer;
+ cmdLine: string;
begin
Log(vlInfo,SInfoExecutingCommand,[Cmd,Args]);
if ListMode then
@@ -3415,7 +3416,13 @@ begin
// We should check cmd for spaces, and move all after first space to args.
E:=ExecuteFPC(Verbose, cmd, args);
If (E<>0) and (not IgnoreError) then
- Error(SErrExternalCommandFailed,[Cmd,E]);
+ begin
+ if trim(Args)<>'' then
+ cmdLine := cmd + ' ' + trim(args)
+ else
+ cmdline := cmd;
+ Error(SErrExternalCommandFailed,[cmdLine,E]);
+ end;
end;
end;