From 598bbb82741846d1d43cdb8d13d7ab7b35022c48 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 8 Jun 2013 21:08:03 +0200 Subject: [PATCH] Log the message too. --- lib/$.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/$.coffee b/lib/$.coffee index 8a8b23f0e..74b76e04c 100644 --- a/lib/$.coffee +++ b/lib/$.coffee @@ -265,8 +265,9 @@ $.get = (key, val, cb) -> count = 0 done = (item) -> - if chrome.runtime.lastError - c.error chrome.runtime.lastError + {lastError} = chrome.runtime + if lastError + c.error lastError, lastError.message or 'No message.' $.extend items, item cb items unless --count