Make authentification error report to work, and

warn user if trying to use API but not filling corresponding fields
This commit is contained in:
Godzil
2018-08-01 19:55:59 +01:00
parent ab35bb4439
commit 9c3aaf220a
3 changed files with 37 additions and 8 deletions

View File

@@ -111,7 +111,13 @@ export default function(args: string[], done: (err?: Error) => void)
tasksArr[i].retry = 0;
}
if (tasksArr[i].retry <= 0)
if (errin.authError)
{
/* Force a graceful exit */
log.error(errin.message);
i = tasksArr.length;
}
else if (tasksArr[i].retry <= 0)
{
log.error(JSON.stringify(errin));
if (config.debug)