encukou/test-1 — Issue #31: Handle CLI errors more gracefully
Author: encukou
Created: 2011-11-03 19:26:39+00:00
State: open
Labels: api, feature, high-priority, involved

**Reported by [Eevee](http://bugs.veekun.com/users/1) on 2010/04/24 15:31:40 +0000 · Migrated from [Redmine issue 217](http://bugs.veekun.com/issues/217)**

---

Off the top of my head, the following can happen:

- Engine URI has a bogus scheme.
- Engine URI is just bogus.
- Engine is an RDBMS that needs a certain Python module.
- Engine is file-based and doesn’t have write permission to the given file.
- Engine is not file-based, but the requested database doesn’t exist.
- Engine has bad credentials.
- Index directory is not readable.
- Index directory is not writable.
- Index is not populated, and this is a lookup/status/whatever command.
- `dump` tries to dump from an obsolete schema.
- `load` is given an incomplete subtree of dependent tables.
- `load` tries to load into existing tables without `-D` passed.
- Ctrl-C is pressed.

Showing a backtrace is ugly and, for many of these, not very helpful.

Redmine metadata:
Updated on: 2010/10/08 08:00:28 +0000
Start date: 2010/04/24

---

**Comment by [Eevee](http://bugs.veekun.com/users/1) from 2010/10/08 08:00:28 +0000**

Assignee ⇨ —