We simply customize like this when outage happens:
var error = JSON.parse(JSON.stringify(outage.error));
so, here we need to put some useful information when ping is failed, like this:
var error = {"code":"xxx", "message":err.message};
callback(error, "failed", "failed", time);
But this feature seems should be done in the plugin and ping-service projects?
We simply customize like this when outage happens:
var error = JSON.parse(JSON.stringify(outage.error));
so, here we need to put some useful information when ping is failed, like this:But this feature seems should be done in the plugin and ping-service projects?