Skip to content

Commit 10aa523

Browse files
author
Ryan Dingman
committed
Add fatalError for unexpected result from DispatchIO.read
1 parent ab43ae4 commit 10aa523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Subprocess/Platforms/Subprocess+Unix.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ extension TrackedDispatchIO {
490490
status = .endOfChunk(SequenceOutput.Buffer(data: data))
491491

492492
case (nil, false):
493-
return
493+
fatalError("Unexpectedly received no data from DispatchIO with it indicating it is not done.")
494494

495495
case (nil, true):
496496
status = .endOfFile

0 commit comments

Comments
 (0)