mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -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) {
|
||||
context.log(error);
|
||||
context.res = {
|
||||
body: error,
|
||||
body: {
|
||||
"message": (error.message) ? error.message : "unable to refresh token"
|
||||
},
|
||||
status: 500
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue