[GRASS-SVN] r57273 - grass/branches/develbranch_6/db/base

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 25 11:37:56 PDT 2013


Author: mmetz
Date: 2013-07-25 11:37:56 -0700 (Thu, 25 Jul 2013)
New Revision: 57273

Modified:
   grass/branches/develbranch_6/db/base/describe.c
Log:
db.describe: fix return code if table does not exist

Modified: grass/branches/develbranch_6/db/base/describe.c
===================================================================
--- grass/branches/develbranch_6/db/base/describe.c	2013-07-25 18:37:39 UTC (rev 57272)
+++ grass/branches/develbranch_6/db/base/describe.c	2013-07-25 18:37:56 UTC (rev 57273)
@@ -48,9 +48,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