Skip to content

Commit e679a49

Browse files
committed
Throw proper exception type
1 parent aaaa843 commit e679a49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uri.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function URIParser.URI(p::AbstractPath)
22
if isempty(root(p))
3-
error("$p is not an absolute path")
3+
throw(ArgumentError("$p is not an absolute path"))
44
end
55

66
b = IOBuffer()

0 commit comments

Comments
 (0)