mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 08:23:55 +00:00
refactor: reword error
This commit is contained in:
committed by
Carlos Valente
parent
fd9b944ecf
commit
649f0af2cf
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user