]> https://gitweb.dealii.org/ - dealii.git/commitdiff
improve error message if include line is corrupted
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 16:16:10 +0000 (16:16 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 16:16:10 +0000 (16:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@15666 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/make_dependencies.cc

index e9955fc4d128461c6f8ac9ddc6497a22ad13c16a..158aed9334698cdcb8aa2583f4993e73de75287a 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.