File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ package builder
1818import  (
1919	"github.com/arduino/arduino-cli/arduino/cores/packagemanager" 
2020	"github.com/arduino/arduino-cli/legacy/builder/types" 
21- 	"github.com/pkg/errors" 
2221)
2322
2423type  HardwareLoader  struct {}
@@ -33,7 +32,13 @@ func (s *HardwareLoader) Run(ctx *types.Context) error {
3332			// I have no intention right now to start a refactoring of the legacy package too, so 
3433			// here's this shitty solution for now. 
3534			// When we're gonna refactor the legacy package this will be gone. 
36- 			return  errors .WithStack (errs [0 ].Err ())
35+ 
36+ 			if  ctx .Verbose  {
37+ 				log  :=  ctx .GetLogger ()
38+ 				for  _ , err  :=  range  errs  {
39+ 					log .Println ("info" , "Error loading hardware platform: {0}" , err .Message ())
40+ 				}
41+ 			}
3742		}
3843		ctx .PackageManager  =  pm 
3944	}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments