Removed 'err' reference in function outside of capture scope