printer checker

This commit is contained in:
efrilm
2025-11-04 22:22:13 +07:00
parent 1b24bae23a
commit 98b152cbc2
4 changed files with 150 additions and 30 deletions
@@ -123,9 +123,7 @@ class PrinterLocalDataProvider {
if (result.isEmpty) {
log('Printer with code $code not found');
return DC.error(
PrinterFailure.dynamicErrorMessage('Printer not found'),
);
return DC.error(PrinterFailure.empty());
}
final printer = PrinterDto.fromJson(result.first);