ckanapi icon indicating copy to clipboard operation
ckanapi copied to clipboard

Handle CLI errors more gracefully

Open wardi opened this issue 9 years ago • 1 comments

Things like:

  • errors raised as part of a ckanapi action call
  • badly formatted JSONL input
  • unexpected errors when using ckanapi dump or ckanapi load with a local CKAN instance

all result in tracebacks, but aren't ckanapi bugs. We should catch these and display them better. Perhaps with an attractive shade of red text.

wardi avatar Jun 17 '16 15:06 wardi

I've just bumped into ckanapi load crashing after importing 20k datasets because codec can't encode character. It might be useful to allow the load to carry on, after some types of errors, to the end and allow users to redirect stderr somewhere as a log to handle them later?

rossjones avatar May 09 '18 08:05 rossjones