Throw Error message in lifecycle hook doesnt change the error message display in the UI

Thanks a lot @taka : it’s perfect !