dnp: for out of media/etc situations, error out properly instead of warning and retrying indefinitely

This commit is contained in:
Solomon Peachy 2021-10-12 12:56:11 -04:00
parent 64e73f58a4
commit d84cd5f482
1 changed files with 2 additions and 3 deletions

View File

@ -2223,9 +2223,8 @@ top:
case 1200: /* Ribbon End */
case 1300: /* Paper Jam */
case 1400: /* Ribbon Error */
WARNING("Printer not ready: %s, please correct...\n", dnpds40_statuses(status));
sleep(1);
goto top;
ERROR("Printer not ready: %s, please correct...\n", dnpds40_statuses(status));
return CUPS_BACKEND_STOP;
case 1500: /* Paper definition error */
ERROR("Paper definition error, aborting job\n");
return CUPS_BACKEND_CANCEL;