mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Corrected exception message in UPCEWriter (#1074)
- according to EAN13Writer, both possibilities should be reflected within the message
This commit is contained in:
parent
e9b9fa23fd
commit
e6937d25e8
|
@ -73,7 +73,7 @@ public final class UPCEWriter extends UPCEANWriter {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"Requested contents should be 8 digits long, but got " + length);
|
"Requested contents should be 7 or 8 digits long, but got " + length);
|
||||||
}
|
}
|
||||||
|
|
||||||
checkNumeric(contents);
|
checkNumeric(contents);
|
||||||
|
|
Loading…
Reference in a new issue