Skip to content

Commit 8eb3b34

Browse files
committed
Changing bound for empty file to include (potentially) negative result
1 parent 29370bd commit 8eb3b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RawFileParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ private static void ProcessFile(ParseInput parseInput)
119119
var lastScanNumber = rawFile.RunHeaderEx.LastSpectrum;
120120

121121
// Check for empty file
122-
if (lastScanNumber == 0)
122+
if (lastScanNumber < 1)
123123
{
124-
throw new RawFileParserException("Empty RAW file, no output is produced");
124+
throw new RawFileParserException("Empty RAW file, no output will be produced");
125125
}
126126

127127
if (parseInput.MetadataFormat != MetadataFormat.NONE)

0 commit comments

Comments
 (0)