Red-Folder / bgs-core

Core code for the Cordova Background Service
Other
236 stars 105 forks source link

From Wiki: on page "Build your own Backgroud Service", function displayError #73

Open ericpennachini opened 7 years ago

ericpennachini commented 7 years ago

I've a doubt: in function displayError, parameter e (in cases of errors in callback functions): this parameter has fields inside? For example, message field, or text. @Red-Folder

Red-Folder commented 7 years ago

In short, it really depends what the problem was.

In some cases it may have an object if the is what is returned by the code further down.

If there isn't an object returned by the code further down then e will be the message