add more logging

This commit is contained in:
Sorunome 2020-03-26 21:34:40 +01:00
parent f29399e86e
commit c9ac22c838
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ async function run() {
data.state = client.getState;
await client.disconnect();
} catch (err) {
log.warn("Failed to log in as new user, perhaps the password is worng?", err);
retData.error = "Username or password wrong";
return retData;
}