Test for giterr_capture
clone: don't overwrite original error message