mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
better API error handling
This commit is contained in:
@ -8,4 +8,8 @@ function getCookie(name) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function callbackErrors(errors, func) {
|
||||
errors.forEach(error => func(error.msg));
|
||||
}
|
Reference in New Issue
Block a user