File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed 
components/microsoft_outlook Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -276,8 +276,14 @@ export default {
276276        headers : this . _getHeaders ( headers ) , 
277277        ...otherConfig , 
278278      } ; 
279- 
280-       return  axios ( $  ??  this ,  config ) ; 
279+       try  { 
280+         return  await  axios ( $  ??  this ,  config ) ; 
281+       }  catch  ( error )  { 
282+         if  ( error . response . status  ===  403 )  { 
283+           throw  new  Error ( "Insufficient permissions. Please verify that your Microsoft account has the necessary permissions to perform this operation." ) ; 
284+         } 
285+         throw  error ; 
286+       } 
281287    } , 
282288    async  createHook ( {  ...args  }  =  { } )  { 
283289      const  response  =  await  this . _makeRequest ( { 
Original file line number Diff line number Diff line change 11{
22  "name" : " @pipedream/microsoft_outlook" 
3-   "version" : " 1.7.0 " 
3+   "version" : " 1.7.1 " 
44  "description" : " Pipedream Microsoft Outlook Components" 
55  "main" : " microsoft_outlook.app.mjs" 
66  "keywords" : [
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments