Improve missing authtoken error message

This commit is contained in:
Joseph Henry 2021-03-08 21:45:38 -08:00
parent b8e23e6fcc
commit 3870f7af27
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344

View file

@ -287,7 +287,7 @@ static int cli(int argc,char **argv)
}
#endif
if (!authToken.length()) {
fprintf(stderr,"%s: missing authentication token and authtoken.secret not found (or readable) in %s" ZT_EOL_S,argv[0],homeDir.c_str());
fprintf(stderr,"%s: authtoken.secret not found or readable in %s (try again as root)" ZT_EOL_S,argv[0],homeDir.c_str());
return 2;
}
}