[glom] Remove unnecessary stdcerr output.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove unnecessary stdcerr output.
- Date: Sat, 3 Dec 2011 13:27:24 +0000 (UTC)
commit af19e301c574070bbde60177a6c41a10004a6810
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]