Issue 1804 improve "getSymbolicLinkStatus: does not exist" error message

Title improve "getSymbolicLinkStatus: does not exist" error message
Priority feature Status resolved
Milestone Resolved in 2.8.0
Superseder Nosy List dmitry.kurochkin, kowey, twb
Assigned To kowey
Topics UI

Created on 2010-03-31.01:57:38 by twb, last changed 2011-09-07.17:44:02 by noreply.

msg10583 (view) Author: twb Date: 2010-03-31.01:57:37
When running "darcs add" on a path that doesn't (currently) exist:

# darcs add apt/apt.conf.d/10apt-listbugs.distrib
darcs: apt/apt.conf.d/10apt-listbugs.distrib: getSymbolicLinkStatus: does not exist (No such file or directory)

# darcs --version
2.4 (+ 142 patches)
# darcs --exact-version | sed -n /Compiled.with/,\$p | fmt
Compiled with:

HTTP-4000.0.6 array- base- bytestring-
containers- directory- extensible-exceptions-
filepath- hashed-storage-0.4.10 haskeline- html-
mmap-0.4.1 mtl- network- old-time- parsec-
process- random- regex-compat-0.92 tar-
terminfo- text- unix- zlib-
msg10588 (view) Author: kowey Date: 2010-03-31.10:16:41
I could have sworn this was already in the bug tracker, but we have a
general problem with this unfriendly error message (I guess the problem
is that getSymbolicLinkStatus looks like gobbledygook or exposes too
much implementation detail).

We it should just something simpler like darcs:
apt/apt.conf.d/10apt-listbugs.distrib: No such file or directory

or better!
msg14726 (view) Author: noreply Date: 2011-09-07.17:44:01
The following patch sent by Eric Kow <kowey@darcs.net> updated issue issue1804 with
status=resolved;resolvedin=2.8.0 HEAD

* Resolve issue1804: friendlier message when adding missing files. 
Ignore-this: b221e137f9e958d62b4c57738af7828e

Instead of
  darcs: foo: getSymbolicLinkStatus: does not exist (No such file or directory)
We now have
  File foo does not exist!
Date User Action Args
2010-03-31 01:57:38twbcreate
2010-03-31 10:16:43koweysetstatus: unknown -> needs-implementation
topic: + UI
title: darcs add --> getSymbolicLinkStatus: does not exist -> improve "getSymbolicLinkStatus: does not exist" error message
nosy: + kowey
messages: + msg10588
priority: feature
2011-04-07 17:07:51koweysetassignedto: kowey
2011-09-07 17:44:02noreplysetstatus: needs-implementation -> resolved
messages: + msg14726
resolvedin: 2.8.0