Document that chrome.runtime.lastError
causes a rejection
#12
Labels
documentation
Improvement to the docs
good first issue
Good for newcomers
help wanted
Extra attention is needed
Documentation Is:
Please Explain in Detail...
If there is an error when executing the callbacks passed to the chrome API,
chrome.runtime.lastError
will be set. On the docs for this package or the source code I have not been able to find a reference to that situation. Also, as this uses promises, the check on the promise'sthen
will not work since thelastError
is only set inside the callback.Your Proposal for Changes
Include a text explaining if this is needed or it's handled internally by you and the promise is rejected when
lastError
is set.The text was updated successfully, but these errors were encountered: