Hi,
I was watching in your code to check if it was possible to be informed when the slack api answer with an error, but it's not possible
function executeGetRequest(url, callback) {
$http.get(url).
success(function (result) {
if (callback)
callback(result);
}).
error(function (data, status) {
$log.log(status);
$log.log(data);
});
}
Is it possible to get an error in the callback ?
Exemple :
function executeGetRequest(url, callback) {
$http.get(url).
success(function (result) {
if (callback)
callback(result);
}).
error(function (data, status) {
if (callback)
callback(null, status);
$log.log(status);
$log.log(data);
});
}
Or something like that ?
Thanks in advance
Hi,
I was watching in your code to check if it was possible to be informed when the slack api answer with an error, but it's not possible
Is it possible to get an error in the callback ?
Exemple :
Or something like that ?
Thanks in advance