gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-375-gdad0b2a
Date: Wed, 29 Jun 2011 13:17:14 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  dad0b2a7d1609f62364d37af0229e3c27d99e107 (commit)
      from  0d59d6b6829ffb9dcddd2c7652d928da78812b75 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=dad0b2a7d1609f62364d37af0229e3c27d99e107


commit dad0b2a7d1609f62364d37af0229e3c27d99e107
Author: Sandro Santilli <address@hidden>
Date:   Wed Jun 29 15:16:55 2011 +0200

    Use std::strerror to tell more about std::fopen failures

diff --git a/libbase/StreamProvider.cpp b/libbase/StreamProvider.cpp
index 57ea733..70f8467 100644
--- a/libbase/StreamProvider.cpp
+++ b/libbase/StreamProvider.cpp
@@ -28,6 +28,7 @@
 #include "rc.h" // for rcfile
 #include "NamingPolicy.h"
 
+#include <cerrno>
 #include <cstdio>
 #include <map>
 #include <string>
@@ -79,6 +80,8 @@ StreamProvider::getStream(const URL& url, bool 
namedCacheFile) const
 
                        FILE *newin = std::fopen(path.c_str(), "rb");
                        if (!newin)  { 
+                               log_error(_("Could not open file %1%: %2%"),
+                                         path.c_str(), std::strerror(errno));
                                return stream;
                        }
                        // Close on destruction
@@ -143,6 +146,8 @@ StreamProvider::getStream(const URL& url, const 
std::string& postdata,
 
                        FILE *newin = std::fopen(path.c_str(), "rb");
                        if (!newin)  { 
+                               log_error(_("Could not open file %1%: %2%"),
+                                         path.c_str(), std::strerror(errno));
                                return stream;
                        }
                        stream = makeFileChannel(newin, false);

-----------------------------------------------------------------------

Summary of changes:
 libbase/StreamProvider.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]