[gitg] Log error on gravatar image retrieve
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Log error on gravatar image retrieve
- Date: Thu, 23 May 2019 06:02:48 +0000 (UTC)
commit 0340864a1b605208be4010b3a8ee41bf4cc96c06
Author: Gaurav Agrawal <agrawalgaurav1999 gmail com>
Date: Mon Apr 29 23:01:44 2019 +0530
Log error on gravatar image retrieve
gravatar is retrieved using http get operation, log error if it fails
libgitg/gitg-avatar-cache.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libgitg/gitg-avatar-cache.vala b/libgitg/gitg-avatar-cache.vala
index e0356176..56ac1f4a 100644
--- a/libgitg/gitg-avatar-cache.vala
+++ b/libgitg/gitg-avatar-cache.vala
@@ -73,8 +73,9 @@ public class Gitg.AvatarCache : Object
{
stream = yield Gitg.PlatformSupport.http_get(file, cancellable);
}
- catch
+ catch(Error e)
{
+ warning("Can not retrieve avatar from %s: %s", file.get_path(), e.message);
return null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]