From: kanschat Date: Thu, 24 Jan 2008 16:16:10 +0000 (+0000) Subject: improve error message if include line is corrupted X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e31d1d24c71430ee65a55bb8e1d1502c67e2f63;p=dealii-svn.git improve error message if include line is corrupted git-svn-id: https://svn.dealii.org/trunk@15666 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/make_dependencies.cc b/deal.II/common/scripts/make_dependencies.cc index e9955fc4d1..158aed9334 100644 --- a/deal.II/common/scripts/make_dependencies.cc +++ b/deal.II/common/scripts/make_dependencies.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2003, 2007 by the deal.II authors +// Copyright (C) 2003, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -146,8 +146,13 @@ void determine_direct_includes (const std::string &file) line.begin()+endpos); break; } - assert (included_file.length() > 0); - + if (included_file.length() == 0) + { + std::cerr << "Include file name empty in file <" << file << "> line: " << std::endl + << line << std::endl; + abort(); + } + // next try to locate the file // in absolute paths. this is // easy if it was included via