* stop when fpmake fails

git-svn-id: trunk@9355 -
This commit is contained in:
peter 2007-11-30 00:15:50 +00:00
parent cc014d6a65
commit f3b26a94fe
3 changed files with 5 additions and 3 deletions

View File

@ -304,7 +304,7 @@ begin
except
On E : Exception do
begin
Writeln(StdErr,SErrRunning);
Writeln(StdErr,SErrException);
Writeln(StdErr,E.Message);
Halt(1);
end;

View File

@ -249,7 +249,8 @@ begin
FPMakeBin:='fpmake'+ExeExt;
SetCurrentDir(PackageBuildPath);
Result:=ExecuteProcess(FPMakeBin,Command+OOptions);
if Result<>0 then
Error(SErrExecutionFPMake,[Command]);
end;

View File

@ -22,7 +22,8 @@ Resourcestring
SErrNoPackageSpecified = 'No package specified';
SErrNoPackageAvailable = 'Package %s %s is not available';
SErrOnlyLocalDir = 'The speficied command "%s" works only on current dir, not on a (remote) package';
SErrRunning = 'The FPC make tool encountered the following error:';
SErrExecutionFPMake = 'Execution of FPMake %s failed';
SErrException = 'The FPC Package tool encountered the following error:';
SErrActionAlreadyRegistered= 'Action "%s" is already registered';
SErrActionNotFound = 'Action "%s" is not supported';
SErrFailedToCompileFPCMake = 'Could not compile fpmake driver program';