Skip to content

Commit 075dc6f

Browse files
authored
Merge pull request #2252 from usethesource/fix/relativize-failure
2 parents 2a813e4 + 3a4d3b0 commit 075dc6f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/org/rascalmpl/library/Location.rsc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ loc relativize(list[loc] haystack, loc needle) {
3737
if (h <- haystack, loc r := relativize(h, needle), r != needle) {
3838
return r;
3939
}
40-
else {
41-
fail relativize;
42-
}
40+
throw PathNotFound(needle);
4341
}
4442

4543
@synopsis{Shortens an absolute path to a jar inside the local maven repository.}

0 commit comments

Comments
 (0)