Skip to content

Commit fcbc8db

Browse files
committed
Refine error messages
1 parent adfc246 commit fcbc8db

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
@@ -121,13 +121,13 @@ private static void ProcessFile(ParseInput parseInput)
121121
{
122122
if (!rawFile.IsOpen)
123123
{
124-
throw new RawFileParserException("Unable to access the RAW file using the native Thermo library.");
124+
throw new RawFileParserException("Unable to access the RAW file using the native Thermo API");
125125
}
126126

127127
// Check for any errors in the RAW file
128128
if (rawFile.IsError)
129129
{
130-
throw new RawFileParserException($"RAW file cannot be processed because of an error - {rawFile.FileError}");
130+
throw new RawFileParserException($"Native Thermo API reported the following error - RAW file is likely corrupted\n{rawFile.FileError.ErrorMessage}");
131131
}
132132

133133
// Check if the RAW file is being acquired

0 commit comments

Comments
 (0)