Skip to content

Commit

Permalink
Change the errors in relpath.
Browse files Browse the repository at this point in the history
  • Loading branch information
the-lazy-learner authored and DilumAluthge committed Nov 8, 2022
1 parent 5a323a6 commit 8eb7232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/path.jl
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ On Windows, case sensitivity is applied to every part of the path except drive l
`path` and `startpath` refer to different drives, the absolute path of `path` is returned.
"""
function relpath(path::String, startpath::String = ".")
isempty(path) && throw(ArgumentError("`path` must be specified"))
isempty(startpath) && throw(ArgumentError("`startpath` must be specified"))
isempty(path) && throw(ArgumentError("`path` must be non-empty"))
isempty(startpath) && throw(ArgumentError("`startpath` must be non-empty"))
curdir = "."
pardir = ".."
path == startpath && return curdir
Expand Down

0 comments on commit 8eb7232

Please sign in to comment.