feat(app/actions): display plugins errors in logs (#1023) [skip ci]

This commit is contained in:
Simon Lecoq
2022-04-28 00:26:53 +02:00
committed by GitHub
parent ac68f3d880
commit 1bfa51af2e
2 changed files with 10 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
}
return value
}))
return {rendered, mime: "application/json"}
return {rendered, mime: "application/json", errors}
}
//Markdown output
@@ -161,7 +161,7 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
rest,
})
}
return {rendered, mime: "text/html"}
return {rendered, mime: "text/html", errors}
}
//Rendering
@@ -197,7 +197,7 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
//Result
console.debug(`metrics/compute/${login} > success`)
return {rendered, mime}
return {rendered, mime, errors}
}
//Internal error
catch (error) {