Corrected exception message in EAN8Writer (#1073)

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

View file

@ -79,7 +79,7 @@ public final class EAN8Writer 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);