[glom/glom-1-20] Remove unnecessary stdcerr output.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-20] Remove unnecessary stdcerr output.
- Date: Mon, 5 Dec 2011 15:22:01 +0000 (UTC)
commit 8c93837983d647fd731a6c943b8d6ae82138958a
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Dec 3 14:27:06 2011 +0100
Remove unnecessary stdcerr output.
glom/libglom/connectionpool_backends/sqlite.cc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glom/libglom/connectionpool_backends/sqlite.cc b/glom/libglom/connectionpool_backends/sqlite.cc
index acb85c5..ef43144 100644
--- a/glom/libglom/connectionpool_backends/sqlite.cc
+++ b/glom/libglom/connectionpool_backends/sqlite.cc
@@ -52,7 +52,10 @@ Glib::RefPtr<Gnome::Gda::Connection> Sqlite::connect(const Glib::ustring& databa
const bool file_exists = Glom::Utils::file_exists(db_file);
if(!file_exists)
{
- std::cerr << G_STRFUNC << ": The db file does not exist at path: " << db_file->get_uri() << std::endl;
+ //We don't warn here because the caller gets an exception anyway,
+ //and only the caller knows if this failure might be expected,
+ //for instance when checking for an unused database name.
+ //std::cerr << G_STRFUNC << ": The db file does not exist at path: " << db_file->get_uri() << std::endl;
//std::cerr << " as filepath: " << db_file->get_path() << std::endl;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]