mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +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:
parent
5ad42c13ad
commit
912b57b95d
8 changed files with 33 additions and 15 deletions
|
@ -18,7 +18,7 @@ import OpenJPEG from "../../external/openjpeg/openjpeg.js";
|
|||
|
||||
class JpxError extends BaseException {
|
||||
constructor(msg) {
|
||||
super(`JPX error: ${msg}`, "JpxError");
|
||||
super(msg, "JpxError");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,4 +68,4 @@ class JpxImage {
|
|||
}
|
||||
}
|
||||
|
||||
export { JpxImage };
|
||||
export { JpxError, JpxImage };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue