process/calculate, process/create-kp: pass error.message to notification
This commit is contained in:
parent
ea7060745b
commit
04276fcb6f
@ -53,9 +53,10 @@ export async function action({ store, trpcClient }: ProcessContext) {
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error_) => {
|
||||
const error = error_ as Error;
|
||||
notification.error({
|
||||
description: JSON.stringify(error),
|
||||
description: error.message,
|
||||
key,
|
||||
message: errorMessage,
|
||||
placement: 'bottomRight',
|
||||
|
||||
@ -80,9 +80,10 @@ export function action({ store, trpcClient, apolloClient }: ProcessContext) {
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error_) => {
|
||||
const error = error_ as Error;
|
||||
notification.error({
|
||||
description: JSON.stringify(error),
|
||||
description: error.message,
|
||||
key,
|
||||
message: errorMessage,
|
||||
placement: 'bottomRight',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user