📝 Format error messages for Challonge OAuth configuration consistently
This commit is contained in:
@@ -57,7 +57,8 @@ app.post('/oauth/token', async (req, res) => {
|
|||||||
if (!hasChallongeAuth) {
|
if (!hasChallongeAuth) {
|
||||||
return res.status(503).json({
|
return res.status(503).json({
|
||||||
error: 'Challonge OAuth not configured',
|
error: 'Challonge OAuth not configured',
|
||||||
message: 'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables'
|
message:
|
||||||
|
'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +109,8 @@ app.post('/oauth/refresh', async (req, res) => {
|
|||||||
if (!hasChallongeAuth) {
|
if (!hasChallongeAuth) {
|
||||||
return res.status(503).json({
|
return res.status(503).json({
|
||||||
error: 'Challonge OAuth not configured',
|
error: 'Challonge OAuth not configured',
|
||||||
message: 'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables'
|
message:
|
||||||
|
'Set CHALLONGE_CLIENT_ID and CHALLONGE_CLIENT_SECRET environment variables'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user