Skip to content

Commit

Permalink
Update --dry-run authentication message (#3022)
Browse files Browse the repository at this point in the history
* Update --dry-run authentication message based on question raised in #3021
  • Loading branch information
abraunegg authored Dec 1, 2024
1 parent 2ef6d47 commit 53c74c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/onedrive.d
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,11 @@ class OneDriveApi {
} else {
// The application cannot be authorised when using --dry-run as we have to write out the authentication data, which negates the whole 'dry-run' process
addLogEntry();
addLogEntry("The application requires authorisation, which involves saving authentication data on your system. Note that authorisation cannot be completed with the '--dry-run' option.");
addLogEntry("The application requires authorisation, which involves saving authentication data on your system. Application authorisation cannot be completed when using the '--dry-run' option.");
addLogEntry();
addLogEntry("To exclusively authorise the application without performing any additional actions, use this command: onedrive");
addLogEntry("To authorise the application please use your original command without '--dry-run'.");
addLogEntry();
addLogEntry("To exclusively authorise the application without performing any additional actions, do not add '--sync' or '--monitor' to your command line.");
addLogEntry();
forceExit();
}
Expand Down

0 comments on commit 53c74c4

Please sign in to comment.