Commit b62c516
authored
fix: make invalid UNC path error message platform-specific (#1351)
This PR updates the `InvalidUncPath` error message to be platform specific, referencing the form `\\server\share` in Windows environments, and `//server/share` in other environments.
The method now checks the environment's platform (`RuntimeInformation.IsOSPlatform(OSPlatform.Windows)`) and conditionally returns an `IOException` with the correctly-formed UNC path in the message, using `System.Runtime.InteropServices` in the `CommonExceptions` class.1 parent 112ab13 commit b62c516
File tree
1 file changed
+4
-1
lines changed- src/TestableIO.System.IO.Abstractions.TestingHelpers
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments