Bug 932 - print the status code with the error message
Summary: print the status code with the error message
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: -current
Hardware: All All
: P2 enhancement
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-21 01:04 AEST by Vincent Fiack
Modified: 2006-10-07 11:37 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Fiack 2004-09-21 01:04:45 AEST
in order to script a few actions with sftp (client), we need to check if some
operation worked or not, ...

in sftp-common.c, you have a function named fx2txt which converts the status
code to a user-friendly message.

Could you append the error code to these messages ?
Thanks !
Comment 1 Damien Miller 2004-12-06 17:28:23 AEDT
No, for the same reason that "ls /nonexistent" doesn't say "ls: /nonexistent: No
such file or directory[2]" - it doesn't help normal users.

Just use a regex to parse the messages - the error message names have been
perfectly stable since 2001 :)
Comment 2 Darren Tucker 2006-10-07 11:37:12 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.