Skip to content

Commit ef55ca1

Browse files
committed
Improve file read exception logging
1 parent 6d90887 commit ef55ca1

File tree

1 file changed

+1
-1
lines changed
  • csharp/extractor/Semmle.Extraction/Entities

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction/Entities/File.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public override void Populate(TextWriter trapFile)
6262
}
6363
catch (Exception exc)
6464
{
65-
Context.ExtractionError($"Couldn't read file: {originalPath}", null, null, exc.StackTrace);
65+
Context.ExtractionError($"Couldn't read file: {originalPath}. {exc.Message}", null, null, exc.StackTrace);
6666
}
6767
}
6868

0 commit comments

Comments
 (0)