Propagating exceptions from MATLAB to Julia

I’ve posted an issue mentioning this in MATLAB.jl a few months ago, but maybe someone here has an idea. I’m looking for a way to have exceptions inside Matlab propagate to Julia. Right now they might elicit some printout (e.g. Undefined function or variable…) but they are silent otherwise:

using MATLAB
mat"""
xxx - 1 % no xxx variable present, the error is silent for Julia
$x = 2
"""
@assert x == 2 # clears fine, even though the Matlab code (silently) failed.

Any one has a bright idea or functioning hack…?