Skip to content

Commit 019f5d4

Browse files
committed
feat(pci-os): improve error message at bucket creation
ref: #DATATR-2693 Signed-off-by: Arthur Bullet <[email protected]>
1 parent e6a709c commit 019f5d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/manager/apps/pci-object-storage/src/pages/object-storage/create/_components/OrderFunnel.component.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import { PlanCode } from '@/configuration/project';
3939
import DiscoveryBanner from '@/components/discovery-banner/DiscoveryBanner';
4040
import A from '@/components/links/A.component';
4141
import user from '@/types/User';
42+
import { getObjectStoreApiErrorMessage } from '@/lib/apiHelper';
4243

4344
interface OrderFunnelProps {
4445
regions: Region[];
@@ -73,7 +74,7 @@ const OrderFunnel = ({
7374
toast.toast({
7475
title: t('createContainerErrorTitle'),
7576
variant: 'critical',
76-
description: err.message,
77+
description: getObjectStoreApiErrorMessage(err),
7778
});
7879
setIsSubmitting(false);
7980
},
@@ -86,10 +87,11 @@ const OrderFunnel = ({
8687
});
8788
const { createS3 } = useCreateS3({
8889
onError: (err) => {
90+
console.log(err);
8991
toast.toast({
9092
title: t('createContainerErrorTitle'),
9193
variant: 'critical',
92-
description: err.message,
94+
description: getObjectStoreApiErrorMessage(err),
9395
});
9496
setIsSubmitting(false);
9597
},

0 commit comments

Comments
 (0)