[geary] Object being passed for string in printf-style statement
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Object being passed for string in printf-style statement
- Date: Tue, 8 Jul 2014 22:40:41 +0000 (UTC)
commit 1f6528b695b6754a710cff92c72e1b10e50e40b1
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 6be8706..2bff719 100644
--- a/src/engine/imap/api/imap-account.vala
+++ b/src/engine/imap/api/imap-account.vala
@@ -273,8 +273,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]