Skip to content

Commit

Permalink
stop using PkgError (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Aug 4, 2018
1 parent 8853033 commit 0b27c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stdlib/Pkg/src/Pkg2/reqs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ struct Requirement <: Line
while !isempty(fields) && fields[1][1] == '@'
push!(system, popfirst!(fields)[2:end])
end
isempty(fields) && throw(PkgError("invalid requires entry: $content"))
isempty(fields) && error("invalid requires entry: $content")
package = popfirst!(fields)
all(field->occursin(Base.VERSION_REGEX, field), fields) ||
throw(PkgError("invalid requires entry for $package: $content"))
error("invalid requires entry for $package: $content")
versions = VersionNumber.(fields)
issorted(versions) || throw(PkgError("invalid requires entry for $package: $content"))
issorted(versions) || error("invalid requires entry for $package: $content")
new(content, package, VersionSet(versions), system)
end
end
Expand Down

0 comments on commit 0b27c33

Please sign in to comment.