input-output-hk / catalyst-toolbox

Catalyst Tools, cli's and scripts related
Apache License 2.0
16 stars 15 forks source link

Catalyst toolbox ideascale import command misleading error #36

Open dkijania opened 3 years ago

dkijania commented 3 years ago

When running catalyst-toolbox app with invalid token it produces an error:

"catalyst-toolbox.exe" "ideascale" "import" "--api-token" "9b978-8a3d-405c-8624-23612494f1af" "--tags" ".\ideascale\\fund5\\tags.json" "--chain-vote-type" "public" "--threshold" "450" "--output-dir" . "--fund" "5" "--fund-goal" "Create, fund and deliver the future of Cardano."
error decoding response body: invalid type: map, expected a sequence at line 1 column 0
  |-> invalid type: map, expected a sequence at line 1 column 0

While it should be more clear that the problem is with token

danielSanchezQ commented 3 years ago

Will try to match error code reported in the response to provide a better error message. Thanks!