From 0b27c33cc3a9b6dda2bcd4b9212c0e0f0e718414 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Fri, 3 Aug 2018 17:59:17 +0200 Subject: [PATCH] stop using PkgError (#577) --- stdlib/Pkg/src/Pkg2/reqs.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/Pkg/src/Pkg2/reqs.jl b/stdlib/Pkg/src/Pkg2/reqs.jl index 9d6da6cdf29447..59f0690e7ad01f 100644 --- a/stdlib/Pkg/src/Pkg2/reqs.jl +++ b/stdlib/Pkg/src/Pkg2/reqs.jl @@ -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