Skip to content

Commit 2bce9f0

Browse files
committed
Update connections-store-redux.ts
1 parent 01cf00a commit 2bce9f0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/compass-connections/src/stores/connections-store-redux.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ function mergeConnections(
561561
info: connectionInfo,
562562
},
563563
};
564+
565+
// TODO: if an Atlas connection is going from PAUSED state to unpaused, we should
566+
// reconnect the data service, since it would previously have been disconnected
567+
// due to non-retryable error code.
564568
}
565569
}
566570

@@ -1423,7 +1427,9 @@ function getDescriptionForNonRetryableError(error: Error): string {
14231427
// to the generic error description.
14241428
const reason = error.message.match(/code: \d+, reason: (.*)$/)?.[1];
14251429
return reason && reason.length > 0
1426-
? reason
1430+
? reason.endsWith('.')
1431+
? reason.slice(0, -1)
1432+
: reason // Remove trailing period
14271433
: NonRetryableErrorDescriptionFallbacks[
14281434
Number(
14291435
error.message.match(/code: (\d+),/)?.[1]

0 commit comments

Comments
 (0)