From acb05e7a85faa48d4167b96b324cf70635cb5575 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 19 Jul 2017 22:53:19 +0200 Subject: [PATCH] better text of throws --- src/GroupRings.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 157374a..a2ac768 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -107,9 +107,8 @@ function GroupRing(G::Group; init::Bool=false) end function GroupRing(G::Group, basis::Vector, pm::Array{Int,2}) - size(pm,1) == size(pm,2) || throw("pm must be of size (n,n), got - $(size(pm))") - eltype(basis) == elem_type(G) || throw("basis must consist of elements of $G") + size(pm,1) == size(pm,2) || throw("pm must be square, got $(size(pm))") + eltype(basis) == elem_type(G) || throw("Basis must consist of elements of $G") basis_dict = reverse_dict(basis) return GroupRing(G, basis, basis_dict, pm) end