File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/compass-connections/src/stores Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 ( / c o d e : \d + , r e a s o n : ( .* ) $ / ) ?. [ 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 ( / c o d e : ( \d + ) , / ) ?. [ 1 ]
You can’t perform that action at this time.
0 commit comments