From 43bb502991808b346a29c20decb602e4804a21ba Mon Sep 17 00:00:00 2001 From: schillic Date: Mon, 23 Jul 2018 21:06:11 +0200 Subject: [PATCH] bugfix: wrong variable name --- src/VPolytope.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VPolytope.jl b/src/VPolytope.jl index fd72be7b31..de095b0de6 100644 --- a/src/VPolytope.jl +++ b/src/VPolytope.jl @@ -76,10 +76,11 @@ The support vector in the given direction. """ function σ(d::AbstractVector{<:Real}, P::VPolytope; algorithm="hrep")::Vector{<:Real} if algorithm == "hrep" - @assert isdefined(@__MODULE__, :Polyhedra) "you need to load Polyhedra for this algorithm" + @assert isdefined(@__MODULE__, :Polyhedra) "this algorithm needs the " * + "package 'Polyhedra' loaded" return σ(d, tohrep(P)) else - error("the algorithm $(hrep) is not known") + error("the algorithm $algorithm is not known") end end