[geary/geary-0.6] Object being passed for string in printf-style statement



commit 3dcfb582190c464080f3a0c59a1d2590238f4c72
Author: Jim Nelson <jim yorba org>
Date:   Tue Jul 8 15:39:12 2014 -0700

    Object being passed for string in printf-style statement
    
    Newest version of Vala apparently catches this (older versions
    compiled w/o complaint).  Caught by GNOME Continuous.

 src/engine/imap/api/imap-account.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap/api/imap-account.vala b/src/engine/imap/api/imap-account.vala
index 0f4de58..621443f 100644
--- a/src/engine/imap/api/imap-account.vala
+++ b/src/engine/imap/api/imap-account.vala
@@ -215,8 +215,10 @@ private class Geary.Imap.Account : BaseObject {
         MailboxInformation? mailbox_info = path_to_mailbox.get(path);
         if (mailbox_info == null)
             throw_not_found(path);
-        if (mailbox_info.attrs.is_no_select)
-            throw new EngineError.UNSUPPORTED("Can't fetch unseen count for unselectable folder %s", path);
+        if (mailbox_info.attrs.is_no_select) {
+            throw new EngineError.UNSUPPORTED("Can't fetch unseen count for unselectable folder %s",
+                path.to_string());
+        }
         
         StatusData data = yield fetch_status_async(path, { StatusDataType.UNSEEN }, cancellable);
         return data.unseen;


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