[glom] Convert another g_warning() to std::err.



commit 86e97e403907236ab2f693a37199d2d79aff0adf
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Feb 23 12:55:53 2012 +0100

    Convert another g_warning() to std::err.

 glom/libglom/db_utils.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/libglom/db_utils.cc b/glom/libglom/db_utils.cc
index db5f1e3..0a51216 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -864,7 +864,7 @@ type_vec_fields get_fields_for_table_from_database(const Glib::ustring& table_na
     }
     else if(data_model_fields->get_n_rows() == 0)
     {
-      g_warning("get_fields_for_table_from_database(): table_name=%s, data_model_fields->get_n_rows() == 0: The table probably does not exist in the specified database.", table_name.c_str());
+      std::cerr << G_STRFUNC << ": table_name=" << table_name << ": data_model_fields->get_n_rows() == 0: The table probably does not exist in the specified database, or the user does not have SELECT rights." << std::endl;
     }
     else
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]