Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: invalid id -make less verbose #175

Open
WolfgangFahl opened this issue Feb 27, 2023 · 0 comments
Open

Error: invalid id -make less verbose #175

WolfgangFahl opened this issue Feb 27, 2023 · 0 comments

Comments

@WolfgangFahl
Copy link

  • wikibase-cli version: 15.16.6
  • OS version: MacOS 11.6.2

When using wd desc and accidential using an ORCID instead of a wikidata ID

wd desc 0000-0001-6544-0435

i get a stacktrace. I think a normal error message "invalid id 0000-0001-6544-0435" would be more appropiate - the output already contains this information but it seems a bit verbose

.nvm/versions/node/v16.7.0/lib/node_modules/wikibase-cli/lib/errors.js:5

   const err = new Error(message)
               ^

Error: invalid id

   at Object.new (/Users/wf/.nvm/versions/node/v16.7.0/lib/node_modules/wikibase-cli/lib/errors.js:5:17)
   at /Users/wf/.nvm/versions/node/v16.7.0/lib/node_modules/wikibase-cli/lib/tolerant_id_parser.js:33:20
   at Array.map (<anonymous>)
   at module.exports (/Users/wf/.nvm/versions/node/v16.7.0/lib/node_modules/wikibase-cli/lib/entity_data_parser.js:25:24)
   at module.exports (/Users/wf/.nvm/versions/node/v16.7.0/lib/node_modules/wikibase-cli/lib/entity_attribute_command.js:19:3)
   at Object.<anonymous> (/Users/wf/.nvm/versions/node/v16.7.0/lib/node_modules/wikibase-cli/bin/wb-description:2:43)
   at Module._compile (node:internal/modules/cjs/loader:1101:14)
   at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
   at Module.load (node:internal/modules/cjs/loader:981:32)
   at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
 context: {
   input: '0000-0002-4679-2766',
   allowNestedIds: false,
   allowEntitiesSchemasIds: false
 }

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant