Skip to content

Commit b1ec308

Browse files
committed
symlinks: improve error message when resolving symlinks failed
1 parent 6de2732 commit b1ec308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/tarxx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ namespace tarxx {
986986
std::string resolved_source_path;
987987
if (file_type == file_type_flag::SYMBOLIC_LINK && read_symlinks) {
988988
resolved_source_path = platform_.realpath(source_path);
989-
if (!platform_.file_exists(resolved_source_path)) throw std::invalid_argument(resolved_source_path + " does not exist");
989+
if (!platform_.file_exists(resolved_source_path)) throw std::invalid_argument("source_path " + source_path + " is a symlink pointing to " + resolved_source_path + " which does not exist");
990990
file_type = platform_.type_flag(resolved_source_path);
991991
} else {
992992
resolved_source_path = source_path;

0 commit comments

Comments
 (0)