Skip to content

Commit 5d22dd6

Browse files
committed
make improvements of the error message
1 parent 2a004ab commit 5d22dd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Data/BinaryData/HDSPack/FileSystem/StreamPack.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ Namespace FileSystem
469469
Optional access As FileAccess = FileAccess.Read) As Stream Implements IFileSystemEnvironment.OpenFile
470470

471471
If access = FileAccess.ReadWrite Then
472-
Throw New InvalidOperationException("HDS Streampack is not supports read/write stream mode!")
472+
Throw New InvalidOperationException($"HDS Streampack is not supports read/write stream mode! open_block_error: {path}")
473473
ElseIf access = FileAccess.Read Then
474474
Return OpenBlock(path)
475475
Else

0 commit comments

Comments
 (0)