[GRASS-dev] [bug #5118] (grass) v.db.droptable: an 'ERROR' is always issued though the command completes OK

Hamish hamish_nospam at yahoo.com
Mon Sep 11 03:38:59 EDT 2006


> this bug's URL: http://intevation.de/rt/webrt?serial_num=5118
> ---------------------------------------------------------------------
> 
> Subject: v.db.droptable: an 'ERROR' is always issued though the
> command completes OK
..
> Although v.db.droptable works as expected and removes the reqested
> table, it always issues an 'ERROR' in the end, which is not good - the
> user *will* think something went wrong indeed.
> 
> Example:
> 
> $ v.db.droptable map=ditches layer=1 Removing following table name
> connected to selected layer: ditches Removing table <ditches> linked
> to layer <1> of vector map <ditches> Are you sure (y/n)? [n]
> y
> Dropping table <ditches>...
> Current attribute table link(s):
> ERROR: Database connection for map <ditches> is not defined in DB file


I've added a line to the script in CVS to make the error message more
instructive.

I can't send the "ERROR:" message to /dev/null as "v.db.connect -p"
sends its output to stderr. This should probably be changed to stdout.


Hamish




More information about the grass-dev mailing list