@@ -119,7 +119,7 @@ private void MainFormLoad(object sender, EventArgs e)
119
119
this . txtFossyUrl . Text = "http://localhost:8081/repo/api/v1" ;
120
120
this . txtToken . Text = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NDc0NzUxOTksIm5iZiI6MTY0NzEyOTYwMCwianRpIjoiTXk0eiIsInNjb3BlIjoid3JpdGUifQ.DSDQDyodi5LgIUyqUbOKQiMtpoqOkI0RnF-uphwI_0A" ;
121
121
this . txtFolder . Text = "TestFolder" ;
122
- this . txtFile . Text = @"..\..\..\TestData\fetch-retry-master.zip" ;
122
+ this . txtFile . Text = @"..\..\..\..\ TestData\fetch-retry-master.zip" ;
123
123
#endif
124
124
this . InitializeStatusDisplay ( ) ;
125
125
log . Info ( "Ready." ) ;
@@ -399,7 +399,7 @@ private async Task<int> StartJob()
399
399
{
400
400
if ( fex . HttpStatusCode != HttpStatusCode . NotFound )
401
401
{
402
- log . Error ( "Error starting jobs: " , fex ) ;
402
+ log . Error ( $ "Error starting jobs: { fex . Message } ", fex ) ;
403
403
return - 1 ;
404
404
} // if
405
405
@@ -410,7 +410,7 @@ private async Task<int> StartJob()
410
410
}
411
411
catch ( Exception ex )
412
412
{
413
- log . Error ( "Error starting jobs: " , ex ) ;
413
+ log . Error ( $ "Error starting jobs: { ex . Message } ", ex ) ;
414
414
return - 1 ;
415
415
}
416
416
} // while
@@ -522,7 +522,7 @@ private async Task<bool> ProcessFile(string fileName)
522
522
}
523
523
catch ( Exception ex )
524
524
{
525
- log . Error ( "Error processing file: " , ex ) ;
525
+ log . Error ( $ "Error processing file: { ex . Message } ", ex ) ;
526
526
return false ;
527
527
} // catch
528
528
} // ProcessFile()
@@ -553,7 +553,7 @@ private async Task<bool> DownloadReport(string reportFilename)
553
553
}
554
554
catch ( Exception ex )
555
555
{
556
- log . Error ( "Error downloading report " , ex ) ;
556
+ log . Error ( $ "Error downloading report { ex . Message } ", ex ) ;
557
557
} // catch
558
558
} // while
559
559
@@ -667,7 +667,7 @@ private bool CheckFolder()
667
667
}
668
668
catch ( Exception ex )
669
669
{
670
- log . Error ( "Error accessing Fossology folder: " , ex ) ;
670
+ log . Error ( $ "Error accessing Fossology folder: { ex . Message } ", ex ) ;
671
671
} // catch
672
672
673
673
return false ;
0 commit comments