@@ -591,6 +591,7 @@ public override void Write(IRawDataPlus rawFile, int firstScanNumber, int lastSc
591591 catch ( Exception ex )
592592 {
593593 Log . Error ( ex ) ;
594+ ParseInput . NewError ( ) ;
594595 }
595596 }
596597
@@ -665,16 +666,17 @@ private void PopulateInstrumentConfigurationList(int firstScanNumber, int lastSc
665666 OntologyMapping . IonizationTypes [ scanFilter . IonizationMode ] ) ;
666667 }
667668 }
668- catch ( Exception e )
669+ catch ( Exception )
669670 {
670671 if ( ! ParseInput . IgnoreInstrumentErrors )
671672 {
672- Log . ErrorFormat ( "Unsupported Ionization Mode - {0}; Use ignoreInstrumentErrors key to suppress this error" , scanFilter . IonizationMode . ToString ( ) ) ;
673- throw e ;
673+ Log . ErrorFormat ( "Unsupported ionization mode - {0}; Use ignoreInstrumentErrors key to suppress this error" , scanFilter . IonizationMode . ToString ( ) ) ;
674+ throw ;
674675 }
675676 else
676677 {
677678 Log . WarnFormat ( "Unsupported Ionization Mode - {0}" , scanFilter . IonizationMode . ToString ( ) ) ;
679+ ParseInput . NewWarn ( ) ;
678680 }
679681 }
680682
@@ -694,12 +696,13 @@ private void PopulateInstrumentConfigurationList(int firstScanNumber, int lastSc
694696 {
695697 if ( ! ParseInput . IgnoreInstrumentErrors )
696698 {
697- Log . ErrorFormat ( "No Scan Filter found for the following scan {0}; Use ignoreInstrumentErrors key to suppress" , scanNumber ) ;
699+ Log . ErrorFormat ( "No scan filter found for the following scan {0}; Use ignoreInstrumentErrors key to suppress" , scanNumber ) ;
698700 throw ;
699701 }
700702 else
701703 {
702704 Log . WarnFormat ( "No Scan Filter found for the following scan {0}" , scanNumber ) ;
705+ ParseInput . NewWarn ( ) ;
703706 }
704707 }
705708
@@ -1201,6 +1204,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
12011204 catch ( Exception ex )
12021205 {
12031206 Log . WarnFormat ( "Cannot load trailer infromation for scan {0} due to following exception\n {1}" , scanNumber , ex . Message ) ;
1207+ ParseInput . NewWarn ( ) ;
12041208 trailerData = new ScanTrailer ( ) ;
12051209 }
12061210
@@ -1325,6 +1329,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
13251329 } ;
13261330
13271331 Log . Error ( $ "Failed finding precursor for { scanNumber } ") ;
1332+ ParseInput . NewError ( ) ;
13281333 }
13291334 }
13301335 else
@@ -2129,6 +2134,7 @@ private PrecursorListType ConstructPrecursorList(int precursorScanNumber, IScanE
21292134 catch ( ArgumentOutOfRangeException )
21302135 {
21312136 Log . Warn ( $ "Failed to get reaction when parsing precursor { precursorScanNumber } ") ;
2137+ ParseInput . NewWarn ( ) ;
21322138 }
21332139
21342140 var precursor = new PrecursorType
@@ -2315,6 +2321,7 @@ private PrecursorListType ConstructPrecursorList(int precursorScanNumber, IScanE
23152321
23162322 default :
23172323 Log . Warn ( $ "Unknown supplemental activation type: { reaction . ActivationType } ") ;
2324+ ParseInput . NewWarn ( ) ;
23182325 break ;
23192326
23202327 }
0 commit comments