Improve error messages

This commit is contained in:
Holger Vogt 2023-05-12 16:59:27 +02:00
parent 4356a631be
commit 8b8200df88
1 changed files with 3 additions and 3 deletions

View File

@ -164,14 +164,14 @@ void com_optran(wordlist* wl) {
if (err || (*stpstr != '\0')) if (err || (*stpstr != '\0'))
goto bugquit; goto bugquit;
if (opstepsize > opfinaltime) { if (opstepsize > opfinaltime) {
fprintf(stderr, "Error: Step size larger than final time.\n"); fprintf(stderr, "Error: Optran step size larger than final time.\n");
goto bugquit; goto bugquit;
} }
if (opstepsize > opfinaltime/50.) { if (opstepsize > opfinaltime/50.) {
fprintf(stderr, "Warning: Step size potentially too small.\n"); fprintf(stderr, "Warning: Optran step size potentially too small.\n");
} }
if (opramptime > opfinaltime) { if (opramptime > opfinaltime) {
fprintf(stderr, "Error: Ramp time larger than final time.\n"); fprintf(stderr, "Error: Optran ramp time larger than final time.\n");
goto bugquit; goto bugquit;
} }
/* optran deselected by setting opstepsize to 0 */ /* optran deselected by setting opstepsize to 0 */