author | Dmitry Potapov <dpotapov@gmail.com> | |
Sat, 11 Oct 2008 16:39:37 +0000 (20:39 +0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 12 Oct 2008 19:36:19 +0000 (12:36 -0700) | ||
commit | 7e7abea96b8140c592a46293f5e33aae0683c7ac | |
tree | 316f1572ee0d7e51bae66b88a61a4120f1e34616 | tree | snapshot |
parent | 616ab43737558b4e589104432a16cf9f331ac457 | commit | diff |
print an error message for invalid path
If verification of path failed, it is always better to print an
error message saying this than relying on the caller function to
print a meaningful error message (especially when the callee already
prints error message for another situation).
Because the callers of add_index_entry_with_check() did not print
any error message, it resulted that the user would not notice the
problem when checkout of an invalid path failed.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If verification of path failed, it is always better to print an
error message saying this than relying on the caller function to
print a meaningful error message (especially when the callee already
prints error message for another situation).
Because the callers of add_index_entry_with_check() did not print
any error message, it resulted that the user would not notice the
problem when checkout of an invalid path failed.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-update-index.c | diff | blob | history | |
read-cache.c | diff | blob | history |