From d2783642b50da69e5783e260bd30980d0402a71d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 21 Jan 2014 07:34:12 +0000 Subject: [PATCH] Improve error message. git-svn-id: https://svn.dealii.org/trunk@32274 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/tria.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deal.II/source/grid/tria.cc b/deal.II/source/grid/tria.cc index 9dc8aa8edf..1795ace4fe 100644 --- a/deal.II/source/grid/tria.cc +++ b/deal.II/source/grid/tria.cc @@ -9467,7 +9467,9 @@ Triangulation (const Triangulation &other) check_for_distorted_cells(other.check_for_distorted_cells), vertex_to_boundary_id_map_1d (0) { - Assert (false, ExcInternalError()); + Assert (false, ExcMessage ("You are not allowed to call this constructor " + "because copying Triangulation objects is not " + "allowed. Use Triangulation::copy_from() instead.")); } -- 2.39.5