[GRASS-SVN] r57271 - grass/trunk/db/db.describe
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 25 11:35:38 PDT 2013
Author: mmetz
Date: 2013-07-25 11:35:38 -0700 (Thu, 25 Jul 2013)
New Revision: 57271
Modified:
grass/trunk/db/db.describe/main.c
Log:
db.describe: fix return code if table does not exist
Modified: grass/trunk/db/db.describe/main.c
===================================================================
--- grass/trunk/db/db.describe/main.c 2013-07-25 13:33:12 UTC (rev 57270)
+++ grass/trunk/db/db.describe/main.c 2013-07-25 18:35:38 UTC (rev 57271)
@@ -47,9 +47,9 @@
parse_command_line(argc, argv);
if (!db_table_exists(parms.driver, parms.database, parms.table)) {
- G_message(_("Table <%s> not found in database <%s> using driver <%s>"),
+ G_warning(_("Table <%s> not found in database <%s> using driver <%s>"),
parms.table, parms.database, parms.driver);
- exit(EXIT_SUCCESS);
+ exit(EXIT_FAILURE);
}
driver = db_start_driver(parms.driver);
if (driver == NULL)
More information about the grass-commit
mailing list