diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-05-27 19:39:39 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-05-27 19:46:23 -0300 |
commit | 68a09934a1f38c0d0ea3fabc64a5390894d931fa (patch) | |
tree | 5493dcde92b75da67ffc1eb24d9d0c5fc1212ae5 /src/find-reverse.js | |
parent | 255102c21db9194535d304f181a2a0145e9b3c8a (diff) |
eslint: make use of optional catch binding more often
Diffstat (limited to 'src/find-reverse.js')
-rw-r--r-- | src/find-reverse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/find-reverse.js b/src/find-reverse.js index 6a67ac0f..c99a4a71 100644 --- a/src/find-reverse.js +++ b/src/find-reverse.js @@ -11,7 +11,7 @@ export function getAllSpecs({ }) { try { thingConstructors; - } catch (error) { + } catch { throw new Error(`Thing constructors aren't ready yet, can't get all ${word} specs`); } @@ -52,7 +52,7 @@ export function findSpec(key, { try { thingConstructors; - } catch (error) { + } catch { throw new Error(`Thing constructors aren't ready yet, can't check if "${word}.${key}" available`); } |