reference: exit with non-zero code when maxchange limit is reached

Use ending of normal mode to signal a failure.
This commit is contained in:
Miroslav Lichvar
2014-04-07 18:26:16 +02:00
parent 610284dcc3
commit 93b66ac141
2 changed files with 6 additions and 4 deletions

View File

@@ -580,7 +580,7 @@ is_offset_ok(double offset)
"Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",
offset, max_offset, !max_offset_ignore ? "exiting" : "ignored");
if (!max_offset_ignore)
SCH_QuitProgram();
end_ref_mode(0);
else if (max_offset_ignore > 0)
max_offset_ignore--;
return 0;