Skip to content

Commit 07aae33

Browse files
committed
update error display
1 parent e9e86e7 commit 07aae33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-global-writes/src/components/states/sharding-error.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const btnStyles = css({
2222

2323
const errorStyles = css({
2424
marginTop: spacing[200],
25+
whiteSpace: 'pre-wrap',
2526
});
2627

2728
interface ShardingErrorProps {
@@ -39,7 +40,7 @@ export function ShardingError({
3940
}: ShardingErrorProps) {
4041
return (
4142
<div className={containerStyles}>
42-
<Banner variant={BannerVariant.Warning} className={bannerStyles}>
43+
<Banner variant={BannerVariant.Danger} className={bannerStyles}>
4344
There was an error sharding your collection. Please cancel the request,
4445
make any necessary changes to your collection, and try again.
4546
<div className={errorStyles}>{shardingError}</div>

0 commit comments

Comments
 (0)