public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* nonspecific error message
@ 2021-03-26 21:28 Peng Yu
  2021-03-29 16:58 ` Adhemerval Zanella
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Yu @ 2021-03-26 21:28 UTC (permalink / raw)
  To: libc-help

Hi,

For renameat2, if only one file is missing, it will perror will print
"No such file or directory". But this error message is not sufficient
to determine which file is missing.

How to detail with this kind of case when the error message is
nonspecific? Should the error be ignored altogether and use some
customized error message? Or there is some better convention for this
kind of case?

-- 
Regards,
Peng

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nonspecific error message
  2021-03-26 21:28 nonspecific error message Peng Yu
@ 2021-03-29 16:58 ` Adhemerval Zanella
  0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2021-03-29 16:58 UTC (permalink / raw)
  To: Peng Yu, Libc-help



On 26/03/2021 18:28, Peng Yu via Libc-help wrote:
> Hi,
> 
> For renameat2, if only one file is missing, it will perror will print
> "No such file or directory". But this error message is not sufficient
> to determine which file is missing.
> 
> How to detail with this kind of case when the error message is
> nonspecific? Should the error be ignored altogether and use some
> customized error message? Or there is some better convention for this
> kind of case?
> 

Do you mean once you remove the renameat2.c implementation from source
tree?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-29 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26 21:28 nonspecific error message Peng Yu
2021-03-29 16:58 ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).