[glom] Do not try to catch non-existing MetaStructError
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom] Do not try to catch non-existing MetaStructError
- Date: Fri, 4 Sep 2009 11:07:46 +0000 (UTC)
commit beb62fb172c34c5689e60660fba5ab0f001e8781
Author: Daniel Elstner <danielk openismus com>
Date: Fri Sep 4 13:07:15 2009 +0200
Do not try to catch non-existing MetaStructError
* glom/base_db.cc (Base_DB::get_fields_for_table_from_database):
For now, catch Glib::Error instead of Gnome::Gda::MetaStructError,
which does not exist.
ChangeLog | 8 ++++++++
glom/base_db.cc | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d996057..e3c6e5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-04 Daniel Elstner <daniel kitta gmail com>
+
+ Do not try to catch non-existing MetaStructError
+
+ * glom/base_db.cc (Base_DB::get_fields_for_table_from_database):
+ For now, catch Glib::Error instead of Gnome::Gda::MetaStructError,
+ which does not exist.
+
2009-09-04 Murray Cumming <murrayc murrayc com>
Fix the client-only non-maemo build on maemo.
diff --git a/glom/base_db.cc b/glom/base_db.cc
index 2cdcc35..e9f5b9e 100644
--- a/glom/base_db.cc
+++ b/glom/base_db.cc
@@ -693,7 +693,7 @@ Base_DB::type_vec_fields Base_DB::get_fields_for_table_from_database(const Glib:
Gnome::Gda::Value(), /* schema */
Gnome::Gda::Value(quoted_table_name)); //It's a static instance inside the MetaStore.
}
- catch(const Gnome::Gda::MetaStructError& ex)
+ catch(const Glib::Error& ex)
{
handle_error(ex);
//TODO: Really fail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]