Make authentification error report to work, and
warn user if trying to use API but not filling corresponding fields
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user