Add auto error-raising for Leica errors