mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
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:
parent
6a32d1e029
commit
17a650d35b
@ -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
|
||||
|
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user