Add assertion message.
1 parent afe62ca commit f561a03a73c83eff7d780f09d4bd7f18d7644bcb
@Sönke Ludwig Sönke Ludwig authored on 25 May 2016
Showing 1 changed file
View
2
■■■
source/dub/internal/vibecompat/inet/path.d
}
 
/// Computes the relative path from `parentPath` to this path.
Path relativeTo(const Path parentPath) const {
assert(this.absolute && parentPath.absolute);
assert(this.absolute && parentPath.absolute, "Determining relative path between non-absolute paths.");
version(Windows){
// a path such as ..\C:\windows is not valid, so force the path to stay absolute in this case
if( this.absolute && !this.empty &&
(m_nodes[0].toString().endsWith(":") && !parentPath.startsWith(this[0 .. 1]) ||