From d8cd5731d97f7e0a0a38307ea8de7afbe37373e8 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 18 Mar 2017 15:41:28 +0100 Subject: [PATCH] Make errors more descriptive --- include/deal.II/lac/exceptions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/deal.II/lac/exceptions.h b/include/deal.II/lac/exceptions.h index cff07a0e12..ee51a42b38 100644 --- a/include/deal.II/lac/exceptions.h +++ b/include/deal.II/lac/exceptions.h @@ -30,7 +30,8 @@ namespace LACExceptions /** * This function only works for quadratic matrices. */ - DeclException0 (ExcNotQuadratic); + DeclExceptionMsg (ExcNotQuadratic, + "This function only works for quadratic objects!"); /** * The operation cannot be finished since the matrix is singular. -- 2.39.5