actionHttpError ( closure action ) : void
Run an action if there is an error in an HTTP request. You can use MegaImporter.log and MegaImporter.error in this function. You must set exactly 3 arguments to your closure, the first will be the description of the error. The second is the link. The third is the HTTP code of the page.
Example
actionHttpError({httpErrorIdentifier,errorLink,httpCode->
....
})
Parameters
action
The closure to run if there is an error in the script