Skip to content

Commit

Permalink
refactor: reword error
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Feb 12, 2025
1 parent fd9b944 commit 649f0af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/server/src/services/sheet-service/SheetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ async function verifySheet(
error.errors[0].reason === 'failedPrecondition' &&
error.errors[0].message === 'This operation is not supported for this document'
) {
throw new Error(
'This operation is not supported for this document. the reason is most likely that this is a .xlsx document',
);
throw new Error('Cannot read the linked file as a Google Sheet. It may be an .xlsx file instead.');
}
const errorMessage = getErrorMessage(error);
throw new Error(`Failed to verify sheet: ${errorMessage}`);
Expand Down

0 comments on commit 649f0af

Please sign in to comment.