mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 03:26:54 +02:00
Improve CLI error message for write permission failures
This commit is contained in:
parent
bbe97dd080
commit
1f4c00c7b5
1 changed files with 2 additions and 2 deletions
|
@ -977,7 +977,7 @@ public:
|
|||
if (!OSUtils::writeFile(authTokenPath.c_str(),_authToken)) {
|
||||
Mutex::Lock _l(_termReason_m);
|
||||
_termReason = ONE_UNRECOVERABLE_ERROR;
|
||||
_fatalErrorMessage = "authtoken.secret could not be written";
|
||||
_fatalErrorMessage = "authtoken.secret could not be written (try running with -U to prevent dropping of privileges)";
|
||||
return _termReason;
|
||||
} else {
|
||||
OSUtils::lockDownFile(authTokenPath.c_str(),false);
|
||||
|
@ -997,7 +997,7 @@ public:
|
|||
if (!OSUtils::writeFile(metricsTokenPath.c_str(),_metricsToken)) {
|
||||
Mutex::Lock _l(_termReason_m);
|
||||
_termReason = ONE_UNRECOVERABLE_ERROR;
|
||||
_fatalErrorMessage = "metricstoken.secret could not be written";
|
||||
_fatalErrorMessage = "metricstoken.secret could not be written (try running with -U to prevent dropping of privileges)";
|
||||
return _termReason;
|
||||
} else {
|
||||
OSUtils::lockDownFile(metricsTokenPath.c_str(),false);
|
||||
|
|
Loading…
Add table
Reference in a new issue