getErrorMessage()

in src/gatherers/docai.js [214:219]


  getErrorMessage(response) {
    if (response.error.message.includes('Request is missing required authentication credential')) {
      return 'Missing required authentication token. Please check your OAuth token.';
    }
    return response.error.message;
  }