Send failed migration error to the UI
As of now, the error is caught and the status of the script is marked as failed, but the error is not sent to the UI so that there is not way to understand what goes wrong.
As of now, the error is caught and the status of the script is marked as failed, but the error is not sent to the UI so that there is not way to understand what goes wrong.