Corrected exception message in UPCEWriter (#1074)

- according to EAN13Writer, both possibilities should be reflected within the message
This commit is contained in:
Ben John 2018-09-24 14:53:11 +02:00 committed by Sean Owen
parent e9b9fa23fd
commit e6937d25e8

View file

@ -73,7 +73,7 @@ public final class UPCEWriter extends UPCEANWriter {
break;
default:
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);