Commit 7a3bb355 authored by Erkka Rinne's avatar Erkka Rinne
Browse files

Fix final abort statement

See #102

(cherry picked from commit f397e70c)
parent 2226081a
...@@ -145,7 +145,6 @@ $ifthene.debug %debug%>1 ...@@ -145,7 +145,6 @@ $ifthene.debug %debug%>1
$$include defOutput/debugSymbols.inc $$include defOutput/debugSymbols.inc
; ;
$endif.debug $endif.debug
if(execError, put log "!!! Errors encountered: " execError:0:0);
); );
$if exist '%input_dir%/3z_modelsClose.gms' $include '%input_dir%/3z_modelsClose.gms'; $if exist '%input_dir%/3z_modelsClose.gms' $include '%input_dir%/3z_modelsClose.gms';
...@@ -166,6 +165,8 @@ execute_unload '%output_dir%/results.gdx', ...@@ -166,6 +165,8 @@ execute_unload '%output_dir%/results.gdx',
$ife %debug%>0 $ife %debug%>0
execute_unload '%output_dir%/debug.gdx'; execute_unload '%output_dir%/debug.gdx';
if(execError,
if(execError, abort execError); putclose log "!!! Errors encountered: " execError:0:0/;
abort "FAILED";
);
* === THE END ================================================================= * === THE END =================================================================
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment