Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libstore/path-references.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void scanForReferencesDeep(
case SourceAccessor::tFifo:
case SourceAccessor::tUnknown:
default:
throw Error("file '%s' has an unsupported type", path.abs());
throw Error("file '%s' has an unsupported type", accessor.showPath(path));
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/libutil/nar-listing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ static ListNarResult<deep> listNarImpl(SourceAccessor & accessor, const CanonPat
case SourceAccessor::Type::tSocket:
case SourceAccessor::Type::tFifo:
case SourceAccessor::Type::tUnknown:
assert(false); // cannot happen for NARs
default:
throw Error("file '%s' has an unsupported type", accessor.showPath(path));
}
}

Expand Down
Loading