Skip to content

Commit 0b27c33

Browse files
committed
stop using PkgError (#577)
1 parent 8853033 commit 0b27c33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/Pkg/src/Pkg2/reqs.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ struct Requirement <: Line
2323
while !isempty(fields) && fields[1][1] == '@'
2424
push!(system, popfirst!(fields)[2:end])
2525
end
26-
isempty(fields) && throw(PkgError("invalid requires entry: $content"))
26+
isempty(fields) && error("invalid requires entry: $content")
2727
package = popfirst!(fields)
2828
all(field->occursin(Base.VERSION_REGEX, field), fields) ||
29-
throw(PkgError("invalid requires entry for $package: $content"))
29+
error("invalid requires entry for $package: $content")
3030
versions = VersionNumber.(fields)
31-
issorted(versions) || throw(PkgError("invalid requires entry for $package: $content"))
31+
issorted(versions) || error("invalid requires entry for $package: $content")
3232
new(content, package, VersionSet(versions), system)
3333
end
3434
end

0 commit comments

Comments
 (0)