Prexonite, a .NET hosted scripting language with a focus on meta-programming and embedded DSLs
0

Configure Feed

Select the types of activity you want to include in your feed.

Simplify pre-flight file existence check

Christian Klauser (Jan 21, 2022, 7:22 PM +0100) 36843e12 a58d9dc5

+1 -4
+1 -4
Prexonite/Compiler/Build/Internal/SelfAssemblingPlan.cs
··· 502 502 catch (Exception ex) 503 503 { 504 504 candidate = null; 505 - if (ex is ArgumentException || 506 - ex is UnauthorizedAccessException || 507 - ex is PathTooLongException || 508 - ex is NotSupportedException) 505 + if (ex is ArgumentException or UnauthorizedAccessException or PathTooLongException or NotSupportedException) 509 506 { 510 507 _trace.TraceEvent(TraceEventType.Error, 0, 511 508 "Error while handling file path \"{0}\". Treating file as non-existent instead of reporting exception: {1}",