Skip to content

Commit 8b48a1b

Browse files
MahdiBMfabianfett
andauthored
Update Sources/PostgresNIO/New/Connection State Machine/ExtendedQueryStateMachine.swift
Co-authored-by: Fabian Fett <fabianfett@apple.com>
1 parent 9dcbbd2 commit 8b48a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgresNIO/New/Connection State Machine/ExtendedQueryStateMachine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ struct ExtendedQueryStateMachine {
337337
}
338338

339339
case .prepareStatement(_, _, _, _):
340-
preconditionFailure("Invalid state: \(self.state)")
340+
return self.setAndFireError(.unexpectedBackendMessage(.emptyQueryResponse))
341341
}
342342

343343
}

0 commit comments

Comments
 (0)