Skip to content

Commit 3954ea2

Browse files
committed
Clean up error message for hardAssert based on peer feedback.
1 parent daba14b commit 3954ea2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/firestore/src/remote/watch_change.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,10 @@ class TargetState {
242242
this.pendingResponses -= 1;
243243
hardAssert(
244244
this.pendingResponses >= 0,
245-
'Unexpected state, `pendingResponses` is less than 0. This ' +
246-
'indicates that the SDK received more target acks from the server than ' +
247-
'expected. The SDK should not continue to operate.'
245+
'`pendingResponses` is less than 0. Actual value: ' +
246+
this.pendingResponses +
247+
'. This indicates that the SDK received more target acks from the ' +
248+
'server than expected. The SDK should not continue to operate.'
248249
);
249250
}
250251

0 commit comments

Comments
 (0)