Skip to content

Commit

Permalink
3076: Enhanced scp remote file not found error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Grigorian committed Jul 5, 2023
1 parent a95fc5e commit 337866e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sftp-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ get_handle(struct sftp_conn *conn, u_int expected_id, size_t *len,
if ((r = sshbuf_get_u32(msg, &status)) != 0)
fatal_fr(r, "parse status");
if (errfmt != NULL)
error("%s: %s", errmsg, fx2txt(status));
error("%s: Aborting", errmsg);
sshbuf_free(msg);
return(NULL);
} else if (type != SSH2_FXP_HANDLE)
Expand Down Expand Up @@ -1570,7 +1570,7 @@ send_open(struct sftp_conn *conn, const char *path, const char *tag,
debug3("Sent %s message SSH2_FXP_OPEN I:%u P:%s M:0x%04x",
tag, id, path, openmode);
if ((handle = get_handle(conn, id, &handle_len,
"%s open \"%s\"", tag, path)) == NULL)
"%s directory %s does not exist", tag, path)) == NULL)
return -1;
/* success */
*handlep = handle;
Expand Down

0 comments on commit 337866e

Please sign in to comment.