mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:03:33 +00:00 
			
		
		
		
	Fix types for errors
This commit is contained in:
		
							parent
							
								
									f5115afcd8
								
							
						
					
					
						commit
						7884734703
					
				@ -17,7 +17,7 @@ export async function run() {
 | 
			
		||||
    const cacheLock = core.getInput('cache');
 | 
			
		||||
    await cachePackages(cacheLock);
 | 
			
		||||
  } catch (error) {
 | 
			
		||||
    core.setFailed(error.message);
 | 
			
		||||
    core.setFailed((error as Error).message);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -72,7 +72,7 @@ export async function run() {
 | 
			
		||||
      `##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`
 | 
			
		||||
    );
 | 
			
		||||
  } catch (err) {
 | 
			
		||||
    core.setFailed(err.message);
 | 
			
		||||
    core.setFailed((err as Error).message);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user