Tweak error messages so that file name isn't modified when we capitalize

the first letter, from Pavel Roskin in GitHub issue 4666.
This commit is contained in:
nicm
2025-10-28 07:32:26 +00:00
parent f31a2d229c
commit aa420cd54a
3 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ cmd_load_buffer_done(__unused struct client *c, const char *path, int error,
return;
if (error != 0)
cmdq_error(item, "%s: %s", path, strerror(error));
cmdq_error(item, "%s: %s", strerror(error), path);
else if (bsize != 0) {
copy = xmalloc(bsize);
memcpy(copy, bdata, bsize);

View File

@@ -66,7 +66,7 @@ cmd_save_buffer_done(__unused struct client *c, const char *path, int error,
return;
if (error != 0)
cmdq_error(item, "%s: %s", path, strerror(error));
cmdq_error(item, "%s: %s", strerror(error), path);
cmdq_continue(item);
}

View File

@@ -115,7 +115,7 @@ cmd_source_file_done(struct client *c, const char *path, int error,
return;
if (error != 0)
cmdq_error(item, "%s: %s", path, strerror(error));
cmdq_error(item, "%s: %s", strerror(error), path);
else if (bsize != 0) {
if (load_cfg_from_buffer(bdata, bsize, path, c, cdata->after,
target, cdata->flags, &new_item) < 0)
@@ -234,7 +234,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
error = strerror(ENOMEM);
else
error = strerror(EINVAL);
cmdq_error(item, "%s: %s", path, error);
cmdq_error(item, "%s: %s", error, path);
retval = CMD_RETURN_ERROR;
}
globfree(&g);