toast error does not accept error param
This commit is contained in:
@ -267,7 +267,12 @@ export const ModelingMachineProvider = ({
|
|||||||
|
|
||||||
exportFromEngine({
|
exportFromEngine({
|
||||||
format: format as Models['OutputFormat_type'],
|
format: format as Models['OutputFormat_type'],
|
||||||
}).catch((e) => toast.error('Error while exporting', e)) // TODO I think we need to throw the error from engineCommandManager
|
}).catch((e: any) => {
|
||||||
|
// TODO I think we need to throw the error from engineCommandManager
|
||||||
|
let errorMessage = 'Error while exporting: ' + e?.message
|
||||||
|
console.error(errorMessage)
|
||||||
|
toast.error(errorMessage)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
guards: {
|
guards: {
|
||||||
|
|||||||
Reference in New Issue
Block a user