Before this, MLIR error capture in `apply_partial_conversion` and `apply_full_conversion` wasn’t handled, which meant any `emitError` would crash the entire program. This PR adds the handling.
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.