mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 17:25:21 +00:00
Movd another PKPass.from message to messages
This commit is contained in:
@@ -46,7 +46,7 @@ export default class PKPass extends Bundle {
|
||||
|
||||
if (!source) {
|
||||
throw new TypeError(
|
||||
`Cannot create PKPass from source: source is '${source}'`,
|
||||
formatMessage(Messages.FROM.MISSING_SOURCE, source),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,10 @@ export const BUNDLE = {
|
||||
CLOSED: "Cannot add file. Bundle is closed.",
|
||||
} as const;
|
||||
|
||||
export const FROM = {
|
||||
MISSING_SOURCE: "Cannot create PKPass from source: source is '%s'",
|
||||
} as const;
|
||||
|
||||
export const PACK = {
|
||||
INVALID: "Cannot pack passes. Only PKPass instances allowed",
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user