t6300: check for cat-file exit status code