[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] [PATCH] improve db error handling
From: |
Neil Conway |
Subject: |
[Monotone-devel] [PATCH] improve db error handling |
Date: |
Tue, 29 Nov 2005 19:48:38 -0500 |
This trivial patch improves the error handling performed by a few of the
"database" subcommands. Namely:
% file nonexistent
nonexistent: ERROR: cannot open `nonexistent' (No such file or
directory)
% monotone --db=nonexistent db version
database schema version: da39a3ee5e6b4b0d3255bfef95601890afd80709
% file nonexistent
nonexistent: empty
% rm nonexistent
% monotone --db=nonexistent db migrate
monotone: error: database schema
da39a3ee5e6b4b0d3255bfef95601890afd80709 is unknown; cannot perform
migration
% file nonexistent
nonexistent: empty
Those subcommands now both error out sanely if the database does not
exist.
-Neil
mt_db_error_handle-1.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-devel] [PATCH] improve db error handling,
Neil Conway <=