mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
better error
This commit is contained in:
parent
fff46bc770
commit
ddddf8c169
1 changed files with 4 additions and 1 deletions
|
@ -167,7 +167,10 @@ exports.checkNameAvailability = functions.https.onCall(
|
|||
// return available;
|
||||
// });
|
||||
} catch (e) {
|
||||
console.log(e.message);
|
||||
console.error(
|
||||
`Error while checking name availability for ${request.name}:` +
|
||||
e.message
|
||||
);
|
||||
return -999;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue