Skip to content

Commit bb0b4a9

Browse files
committed
Merge branch 'mm/lockfile-error-message' into maint
* mm/lockfile-error-message: lockfile: improve error message when lockfile exists lockfile: mark strings for translation
2 parents 167259b + aed7480 commit bb0b4a9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

lockfile.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,15 @@ static int lock_file_timeout(struct lock_file *lk, const char *path,
149149
void unable_to_lock_message(const char *path, int err, struct strbuf *buf)
150150
{
151151
if (err == EEXIST) {
152-
strbuf_addf(buf, "Unable to create '%s.lock': %s.\n\n"
153-
"If no other git process is currently running, this probably means a\n"
154-
"git process crashed in this repository earlier. Make sure no other git\n"
155-
"process is running and remove the file manually to continue.",
152+
strbuf_addf(buf, _("Unable to create '%s.lock': %s.\n\n"
153+
"Another git process seems to be running in this repository, e.g.\n"
154+
"an editor opened by 'git commit'. Please make sure all processes\n"
155+
"are terminated then try again. If it still fails, a git process\n"
156+
"may have crashed in this repository earlier:\n"
157+
"remove the file manually to continue."),
156158
absolute_path(path), strerror(err));
157159
} else
158-
strbuf_addf(buf, "Unable to create '%s.lock': %s",
160+
strbuf_addf(buf, _("Unable to create '%s.lock': %s"),
159161
absolute_path(path), strerror(err));
160162
}
161163

0 commit comments

Comments
 (0)