Log the message too.

This commit is contained in:
Mayhem 2013-06-08 21:08:03 +02:00
parent 5c5894198d
commit 598bbb8274

View File

@ -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