mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Added unknown in catch variables ts
This commit is contained in:
@@ -92,7 +92,11 @@ function registerWithValidation(
|
||||
instance[sharedKeysPoolSymbol].add(field.key);
|
||||
validItems.push(field);
|
||||
} catch (err) {
|
||||
console.warn(err.message ? err.message : err);
|
||||
if (err instanceof Error) {
|
||||
console.warn(err.message ? err.message : err);
|
||||
} else {
|
||||
console.warn(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user