gsheetError function

void gsheetError(
  1. GSheetsException e
)

Implementation

void gsheetError(GSheetsException e) {
  final causeId = e.cause.toLowerCase();
  if (causeId.contains('caller does not have permission')) {
    error('''Error ${e.cause}
${sheet.badCredentialsHelp}
''');
    exit(3);
  }
}