0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Add instructions to HBErrorCode 01 & 02

This commit is contained in:
G.Ambatte
2024-12-22 17:52:09 +13:00
parent dceb5e516b
commit bca653bc4d

View File

@@ -6,6 +6,24 @@ const loginUrl = 'https://www.naturalcrit.com/login';
//050-100 : Other pages errors
const errorIndex = (props)=>{
const googleRefreshInstructions = dedent`
:
### Refreshing your Google Credentials
This issue may be caused by an issue with your Google credentials; if so, the following steps may resolve the issue:
- Go to https://www.naturalcrit.com/login and click logout if present (in small text at the bottom of the page).
- Click "Sign In with Google", which will refresh your Google credentials.
- After completing the sign in process, return to Homebrewery and refresh/reload the page so that it can pick up the updated credentials.
- If this was the source of the issue, it should now be resolved.
If following these steps does not resolve the issue, please let us know!
`;
return {
// Default catch all
'00' : dedent`
@@ -18,7 +36,9 @@ const errorIndex = (props)=>{
'01' : dedent`
## An error occurred while retrieving this brew from Google Drive!
Google reported an error while attempting to retrieve a brew from this link.`,
Google reported an error while attempting to retrieve a brew from this link.`
+ googleRefreshInstructions,
// Google Drive - 404 : brew deleted or access denied
'02' : dedent`
@@ -65,7 +85,9 @@ const errorIndex = (props)=>{
:
Also note, if you prefer not to use your Google Drive for storage, you can always
change the storage location of a brew by clicking the Google drive icon by the
brew title and choosing *transfer my brew to/from Google Drive*.`,
brew title and choosing *transfer my brew to/from Google Drive*.`
+ googleRefreshInstructions,
// User is not Authors list
'03' : dedent`