mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:43:35 +00:00 
			
		
		
		
	Fix type for error messages
This commit is contained in:
		
							parent
							
								
									2a814b57e1
								
							
						
					
					
						commit
						f5115afcd8
					
				@ -116,9 +116,9 @@ export async function getNode(
 | 
				
			|||||||
          `Received HTTP status code ${err.httpStatusCode}.  This usually indicates the rate limit has been exceeded`
 | 
					          `Received HTTP status code ${err.httpStatusCode}.  This usually indicates the rate limit has been exceeded`
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        core.info(err.message);
 | 
					        core.info((err as Error).message);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      core.debug(err.stack);
 | 
					      core.debug((err as Error).stack!);
 | 
				
			||||||
      core.info('Falling back to download directly from Node');
 | 
					      core.info('Falling back to download directly from Node');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -334,7 +334,7 @@ async function resolveVersionFromManifest(
 | 
				
			|||||||
    return info?.resolvedVersion;
 | 
					    return info?.resolvedVersion;
 | 
				
			||||||
  } catch (err) {
 | 
					  } catch (err) {
 | 
				
			||||||
    core.info('Unable to resolve version from manifest...');
 | 
					    core.info('Unable to resolve version from manifest...');
 | 
				
			||||||
    core.debug(err.message);
 | 
					    core.debug((err as Error).message);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user