mirror of
				https://github.com/softprops/action-gh-release.git
				synced 2025-11-04 05:39:24 +00:00 
			
		
		
		
	stringify errors object
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -167,7 +167,9 @@ export const upload = async (
 | 
				
			|||||||
  const json = await resp.json();
 | 
					  const json = await resp.json();
 | 
				
			||||||
  if (resp.status !== 201) {
 | 
					  if (resp.status !== 201) {
 | 
				
			||||||
    throw new Error(
 | 
					    throw new Error(
 | 
				
			||||||
      `Failed to upload release asset ${name}. recieved status code ${resp.status}\n${json.message}\n${json.errors}`
 | 
					      `Failed to upload release asset ${name}. recieved status code ${
 | 
				
			||||||
 | 
					        resp.status
 | 
				
			||||||
 | 
					      }\n${json.message}\n${JSON.stringify(json.errors)}`
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return json;
 | 
					  return json;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user