1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

[api-minor] Remove the image-related error message prefixes

Other custom errors, based on `BaseException`, do not use such a format.
This commit is contained in:
Jonas Jenwald 2024-04-20 12:48:33 +02:00
parent 5ad42c13ad
commit 912b57b95d
8 changed files with 33 additions and 15 deletions

View file

@ -20,7 +20,7 @@ import { CCITTFaxDecoder } from "./ccitt.js";
class Jbig2Error extends BaseException {
constructor(msg) {
super(`JBIG2 error: ${msg}`, "Jbig2Error");
super(msg, "Jbig2Error");
}
}
@ -2593,4 +2593,4 @@ class Jbig2Image {
}
}
export { Jbig2Image };
export { Jbig2Error, Jbig2Image };