nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Checking permissions before opening file


From: Benno Schulenberg
Subject: Re: [Nano-devel] Checking permissions before opening file
Date: Wed, 27 Jan 2016 20:44:37 +0100

On Wed, Jan 27, 2016, at 18:22, Kamil Dudka wrote:
> On Wednesday 27 January 2016 17:52:24 Benno Schulenberg wrote:
> > > > +       if (errno == ENOENT)
> > > > +           statusbar(_("Path '%s' does not exist"), parentdir);
> > 
> > I don't like the words "No such *file*..."  It's not supposed to be
> > a file, it /must/ be a directory.  That's why I split out that one
> > case, to give a clearer error message.
> 
> "No such file or directory" sounds clear to me.  Moreover, the other error 
> message does not say whether the path is a directory or not.  So it hardly 
> classifies as "a clearer error message" in my view.

Okay, I'll change it back to "Directory '%s' does not exist".

(To me "path" just means a string of directories, even when officially
a path can also include the filename itself.)

Benno

-- 
http://www.fastmail.com - A fast, anti-spam email service.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]