Skip to content

Commit

Permalink
Replace throw(ErrorException(message)) with pkgerror(message) (#2539
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DilumAluthge authored Apr 30, 2021
1 parent e5f9e61 commit 06adf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function destructure(project::Project)::Dict
# sanity check for consistency between compat value and string representation
for (name, compat) in project.compat
if compat.val != semver_spec(compat.str)
throw(ErrorException("inconsistency between compat values and string representation"))
pkgerror("inconsistency between compat values and string representation")
end
end

Expand Down

0 comments on commit 06adf29

Please sign in to comment.