mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Include original error in log messages
This commit is contained in:
		@@ -46,9 +46,9 @@ export function handleCacheFailure(error: unknown, message: string): void {
 | 
			
		||||
    if (error instanceof cache.ReserveCacheError) {
 | 
			
		||||
        // Reserve cache errors are expected if the artifact has been previously cached
 | 
			
		||||
        if (isCacheDebuggingEnabled()) {
 | 
			
		||||
            core.info(message)
 | 
			
		||||
            core.info(`${message}: ${error}`)
 | 
			
		||||
        } else {
 | 
			
		||||
            core.debug(message)
 | 
			
		||||
            core.debug(`${message}: ${error}`)
 | 
			
		||||
        }
 | 
			
		||||
    } else {
 | 
			
		||||
        // Warn on all other errors
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user