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: Rishabh Dave
Subject: Re: [Nano-devel] Checking permissions before opening file
Date: Thu, 28 Jan 2016 18:06:07 +0530

On Thu, Jan 28, 2016 at 1:14 AM, Benno Schulenberg <address@hidden> wrote:

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.


Considering technical correctness, "No such file or directory" is better (as files can be included in path).

But, from my own experience (and I think it will resonate among anyone new to Linux, especially command-line) "Directory %s doesn't not exist" does sound much, much better. nano is also recommended command-line text editor for new users - http://linuxcommand.org/lc3_wss0010.php.


reply via email to

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