ports/graphics/epsonscan2/files/patch-src_Standalone_commandlinemode.cpp
Daniel Tameling 345e28cb1c graphics/epsonscan2: Update 6.6.40.0 => 6.7.70.0
Old version crashes on 15.0-CURRENT amd64.

Also improve port: fix dependencies, add default option AVAHI.

PR:		284127
Approved by:	J.R. Oldroyd <fbsd@opal.com>
Tested by:	rhurlin
MFH:		2025Q1
2025-02-10 22:51:51 +03:00

20 lines
1.3 KiB
C++

--- src/Standalone/commandlinemode.cpp.orig 2024-09-12 07:10:40 UTC
+++ src/Standalone/commandlinemode.cpp
@@ -535,7 +535,7 @@ void CommandLineMode::ErrorMessage(SDIError outError)
}else if(outError == kSDIErrorPaperProtect){
error_message = "ERROR : A paper jam has occurred. See the documentation for instructions on removing your originals.";
}else if(outError == kSDIErrorDeviceInBusy){
- error_message = "kSDIErrorDeviceInBusy";
+ error_message = "ERROR : kSDIErrorDeviceInBusy";
}else if(outError == kSDIErrorCoverOpen){
error_message = "ERROR : ADF or ADF cover is open. Close it and reload the originals.";
}else if(outError == kSDIErrorTrayClose){
@@ -556,6 +556,8 @@ void CommandLineMode::ErrorMessage(SDIError outError)
error_message = "ERROR : Device is not found...";
}else if(outError == kSDIErrorUserAuthEnabled){
error_message = "ERROR : Scanning from Epson Scan 2 is not allowed because the authentication function for the scanner is enabled.";
+ }else if(outError == kSDIErrorInvalidResponse){
+ error_message = "ERROR : kSDIErrorInvalidResponse";
}else if(outError == kSDIErrorPaperRemoveError){
error_message = "ERROR : Remove the original.";
}else if(outError == kSDIErrorSkewDetectError){