@@ -2481,7 +2481,8 @@ private async Task<string> DocxToPdf(int caseId, string templateId, string timeS
24812481 }
24822482 catch ( Exception e )
24832483 {
2484- Console . WriteLine ( e ) ;
2484+ Console . WriteLine ( $ "fail: { e . Message } ") ;
2485+ Console . WriteLine ( $ " { e . StackTrace } ") ;
24852486
24862487 string bigFilename = fileName ;
24872488 fileName =
@@ -2675,7 +2676,8 @@ await GetFileFromS3Storage(fieldValue.UploadedDataObj.FileName)
26752676 }
26762677 catch ( Exception e )
26772678 {
2678- Console . WriteLine ( e ) ;
2679+ Console . WriteLine ( $ "fail: { e . Message } ") ;
2680+ Console . WriteLine ( $ " { e . StackTrace } ") ;
26792681 throw ;
26802682 }
26812683 }
@@ -4023,7 +4025,8 @@ public async Task<bool> GetQuestionSet(int microtingUid, int questionSetId, int
40234025 }
40244026 catch ( Exception exception )
40254027 {
4026- Console . WriteLine ( exception . Message ) ;
4028+ Console . WriteLine ( $ "fail: { exception . Message } ") ;
4029+ Console . WriteLine ( $ " { exception . StackTrace } ") ;
40274030 }
40284031 }
40294032
@@ -4167,7 +4170,7 @@ private async Task SaveAnswer(JToken subItem, int questionSetId)
41674170 Answer answer = JsonConvert . DeserializeObject < Answer > ( subItem . ToString ( ) , settings ) ;
41684171 if ( answer == null )
41694172 {
4170- Console . WriteLine ( "fdssd ") ;
4173+ Console . WriteLine ( $ "fail: Could not deserialize answer ") ;
41714174 }
41724175
41734176 Answer result = null ;
@@ -4180,8 +4183,8 @@ private async Task SaveAnswer(JToken subItem, int questionSetId)
41804183 }
41814184 catch ( Exception ex )
41824185 {
4183- Console . WriteLine ( ex . StackTrace ) ;
4184- Console . WriteLine ( ex . Message ) ;
4186+ Console . WriteLine ( $ "fail: { ex . Message } " ) ;
4187+ Console . WriteLine ( $ " { ex . StackTrace } " ) ;
41854188 }
41864189 // if (result != null)
41874190 // {
@@ -4257,8 +4260,8 @@ await db.OptionTranslations.FirstAsync(x => x.OptionId == option.Id)
42574260 }
42584261 catch ( Exception ex )
42594262 {
4260- Console . WriteLine ( ex . StackTrace ) ;
4261- Console . WriteLine ( ex . Message ) ;
4263+ Console . WriteLine ( $ "fail: { ex . Message } " ) ;
4264+ Console . WriteLine ( $ " { ex . StackTrace } " ) ;
42624265 }
42634266 }
42644267 else
@@ -4353,7 +4356,8 @@ await db.QuestionSets.FirstOrDefaultAsync(x => x.MicrotingUid == apiQuestionSetI
43534356 }
43544357 catch ( Exception ex )
43554358 {
4356- Console . WriteLine ( ex . Message ) ;
4359+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
4360+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
43574361 throw ;
43584362 }
43594363 }
@@ -4388,7 +4392,8 @@ await db.QuestionSets.FirstOrDefaultAsync(x => x.MicrotingUid == apiQuestionSetI
43884392 }
43894393 catch ( Exception ex )
43904394 {
4391- Console . WriteLine ( ex . Message ) ;
4395+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
4396+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
43924397 }
43934398 }
43944399 }
@@ -5620,7 +5625,8 @@ await dbContext.CheckListTranslations.FirstAsync(x =>
56205625 }
56215626 catch ( Exception ex )
56225627 {
5623- Console . WriteLine ( ex . Message ) ;
5628+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
5629+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
56245630 }
56255631 }
56265632 // fieldValue generate end
@@ -6233,9 +6239,10 @@ public async Task<bool> DownloadUploadedData(int uploadedDataId)
62336239 }
62346240 }
62356241 }
6236- catch ( Exception )
6242+ catch ( Exception ex )
62376243 {
6238- // Console.WriteLine(e);
6244+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
6245+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
62396246 }
62406247
62416248 MemoryStream memoryStream = new MemoryStream ( ) ;
@@ -6304,9 +6311,10 @@ public async Task<bool> DownloadUploadedData(int uploadedDataId)
63046311 }
63056312 }
63066313 }
6307- catch ( Exception )
6314+ catch ( Exception ex )
63086315 {
6309- // Console.WriteLine(e);
6316+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
6317+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
63106318 }
63116319
63126320 decimal currentRation = image . Height / ( decimal ) image . Width ;
@@ -6375,9 +6383,10 @@ public async Task<bool> DownloadUploadedData(int uploadedDataId)
63756383 }
63766384 }
63776385 }
6378- catch ( Exception )
6386+ catch ( Exception ex )
63796387 {
6380- // Console.WriteLine(e);
6388+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
6389+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
63816390 }
63826391
63836392 decimal currentRation = image . Height / ( decimal ) image . Width ;
@@ -6414,7 +6423,8 @@ await _sqlController
64146423 }
64156424 catch ( Exception ex )
64166425 {
6417- Console . WriteLine ( ex . Message ) ;
6426+ Console . WriteLine ( $ "fail: { ex . Message } ") ;
6427+ Console . WriteLine ( $ " { ex . StackTrace } ") ;
64186428 }
64196429
64206430 return false ;
0 commit comments