Someone reported a failure for the list-emails binary today and shared an error message snippet.
The first line only:
failed to retrieve token: failed to retrieve token: oauth2: cannot fetch token: 401 Unauthorized
The error message should instead be (at a minimum reduced to):
-failed to retrieve token: failed to retrieve token: oauth2: cannot fetch token: 401 Unauthorized
+failed to retrieve token: oauth2: cannot fetch token: 401 Unauthorized
Further tweaks could be applied to further refine the message, but we can at least not repeat the prefix.
Note: The error is occurring because the associated secret has expired and needs to be regenerated.
The detailed error message (not shown here) offers guidance and also specifies the app ID to help the user locate the Azure App entry to generate a new secret.
Someone reported a failure for the
list-emails
binary today and shared an error message snippet.The first line only:
The error message should instead be (at a minimum reduced to):
Further tweaks could be applied to further refine the message, but we can at least not repeat the prefix.
Note: The error is occurring because the associated secret has expired and needs to be regenerated.
The detailed error message (not shown here) offers guidance and also specifies the app ID to help the user locate the Azure App entry to generate a new secret.