2
0
mirror of https://git.coolaj86.com/coolaj86/telebit-relay.js.git synced 2025-02-24 01:48:05 +00:00

update goofy error message to be useful

This commit is contained in:
AJ ONeal 2018-06-07 07:35:39 +00:00
parent 46599c864c
commit a9b1c4204b

View File

@ -46,7 +46,7 @@ module.exports.authenticate = function (opts) {
return new state.Promise(function (resolve, reject) {
// TODO use global interval whenever the number of active links is high
var t = setTimeout(function () {
console.log("the moon lady wins :-/");
console.log("[Magic Link] Timeout for '" + auth.subject + "'");
delete _auths[id];
var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
err.code = 'E_LOGIN_TIMEOUT';