mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-13 14:34:06 -08:00
docs(api): do not log full error
This commit is contained in:
parent
d99f0658d7
commit
d222ce0211
|
@ -38,7 +38,9 @@ module.exports = async function (context, req) {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
context.log(error);
|
context.log(error);
|
||||||
context.res = {
|
context.res = {
|
||||||
body: error,
|
body: {
|
||||||
|
"message": (error.message) ? error.message : "unable to refresh token"
|
||||||
|
},
|
||||||
status: 500
|
status: 500
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue