kopia lustrzana https://github.com/badgen/badgen.net
Simplify live badge api error log
rodzic
a4180b3b9d
commit
dcb20f6a31
|
@ -29,7 +29,7 @@ async function fetchLiveParams (scope, fn, paramsPath) {
|
|||
|
||||
console.time(fetchKey)
|
||||
waitings[fetchKey] = fn(...paramsPath.split('/')).catch(e => {
|
||||
console.error(fetchKey, e)
|
||||
console.error(fetchKey, 'LIVE_ERROR', e.message)
|
||||
return { fail: true }
|
||||
}).then(result => {
|
||||
console.timeEnd(fetchKey)
|
||||
|
|
Ładowanie…
Reference in New Issue