commit 62baee9a86a9325d23bf2f048d28f38b978f707d from: Omar Polo date: Fri Aug 09 13:33:01 2024 UTC got_packidx_open: got_error_fmt -> got_error_path Results in the very same error but takes less characters to build. No functional change intended. commit - febee0fd3632e7a5830fb9853b4ceecdebd07f68 commit + 62baee9a86a9325d23bf2f048d28f38b978f707d blob - d85bb9c97e68310aaa7e391da369828c9e43bbfb blob + 480a6f9d0e7a60f9920ec458ea66f95802e59079 --- lib/pack.c +++ lib/pack.c @@ -358,10 +358,9 @@ got_packidx_open(struct got_packidx **packidx, * the existence of lonely pack index files but we do not. */ if (fstatat(dir_fd, pack_relpath, &pack_sb, 0) == -1) { - if (errno == ENOENT) { - err = got_error_fmt(GOT_ERR_LONELY_PACKIDX, - "%s", relpath); - } else + if (errno == ENOENT) + err = got_error_path(relpath, GOT_ERR_LONELY_PACKIDX); + else err = got_error_from_errno2("fstatat", pack_relpath); goto done; }