IDE: checking compiler exit code and giving warning if not 0,1 from Boguslaw Brandys

git-svn-id: trunk@10586 -
This commit is contained in:
mattias 2007-02-05 11:36:15 +00:00
parent 6a32d1e029
commit 17a650d35b
2 changed files with 6 additions and 0 deletions

View File

@ -169,6 +169,11 @@ begin
end;
finally
TheProcess.WaitOnExit;
if not (TheProcess.ExitStatus in [0,1]) then begin
WriteError(Format(listCompilerInternalError,[TheProcess.ExitStatus]));
Result:=mrCancel;
exit;
end;
end;
except
on e: EOutputFilterError do begin

View File

@ -1899,6 +1899,7 @@ resourcestring
// compiler
lisCompilerErrorInvalidCompiler = 'Error: invalid compiler: %s';
listCompilerInternalError = 'Internal compiler error! (%d)';
lisCompilerHintYouCanSetTheCompilerPath = 'Hint: you can set the compiler '
+'path in Environment->Environment options->Files->Compiler Path';
lisCompilerNOTELoadingOldCodetoolsOptionsFile = 'NOTE: loading old '