diff options
-rw-r--r-- | refs/files-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 0cc116d67c..2d3a8c669a 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -2719,7 +2719,7 @@ static int commit_ref_update(struct ref_lock *lock, } } if (commit_ref(lock)) { - error("Couldn't set %s", lock->ref_name); + strbuf_addf(err, "Couldn't set %s", lock->ref_name); unlock_ref(lock); return -1; } |