Skip to content

Commit

Permalink
Add owner info to missing Google file message
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ambatte committed Jun 26, 2023
1 parent cff4f8e commit c5f4793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/homebrew/pages/errorPage/errors/errorIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const errorIndex = (props)=>{
you tried to open doesn't work anymore. The Homebrewery cannot delete files
from your Google Drive on its own, so there are three most likely possibilities:
:
- **You may have accidentally deleted the Google Drive files.** Look on your Google Drive
- **You may have accidentally deleted the Google Drive files.** Look on
${props.brew.authors?.length > 0 ? `the Google Drive account associated with the **${props.brew.authors[0]}** Homebrewery account` : 'your Google Drive account'}
and make sure the Homebrewery folder is still there, and that it holds your brews
as text files.
- **You may have changed the sharing settings for your files.** If the files
Expand Down
2 changes: 1 addition & 1 deletion server/homebrew.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const api = {
// Throw any error caught while attempting to retrieve Google brew.
if(googleError) {
const reason = googleError.errors[0].reason;
throw { ...googleError, HBErrorCode: reason == 'notFound' ? '02' : '01' };
throw { ...googleError, HBErrorCode: reason == 'notFound' ? '02' : '01', authors: stub?.authors };
}
// Combine the Homebrewery stub with the google brew, or if the stub doesn't exist just use the google brew
stub = stub ? _.assign({ ...api.excludeStubProps(stub), stubbed: true }, api.excludeGoogleProps(googleBrew)) : googleBrew;
Expand Down

0 comments on commit c5f4793

Please sign in to comment.