* handle exceptions when opening the exitcode.txt file as well, so that we write

a nicer message to stdout in case the file does not exist (which happens often
  when we kill dosbox, due to a timeout)

git-svn-id: trunk@32679 -
This commit is contained in:
nickysn 2015-12-18 01:43:24 +00:00
parent 6f490cc6b3
commit 52402032ae

View File

@ -143,8 +143,8 @@ var
F: TextFile;
begin
AssignFile(F, ADosBoxDir + 'EXITCODE.TXT');
Reset(F);
try
Reset(F);
Readln(F, Result);
if Result <> 0 then
Writeln('ExitCode=',Result);