From ebefca4400773fecca4b355247e810f2db94ec26 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Tue, 13 Sep 2016 15:31:03 -0600
Subject: [PATCH] Avoid an exception without message.

---
 include/deal.II/base/logstream.h | 6 ------
 source/base/logstream.cc         | 4 +++-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/deal.II/base/logstream.h b/include/deal.II/base/logstream.h
index ed6d187559..8398d7ac51 100644
--- a/include/deal.II/base/logstream.h
+++ b/include/deal.II/base/logstream.h
@@ -398,12 +398,6 @@ public:
    */
   std::size_t memory_consumption () const;
 
-
-  /**
-   * Exception.
-   */
-  DeclException0(ExcNoFileStreamGiven);
-
 private:
 
 
diff --git a/source/base/logstream.cc b/source/base/logstream.cc
index eb99ccc045..22159aaa6f 100644
--- a/source/base/logstream.cc
+++ b/source/base/logstream.cc
@@ -260,7 +260,9 @@ LogStream::get_console()
 std::ostream &
 LogStream::get_file_stream()
 {
-  Assert(file, ExcNoFileStreamGiven());
+  Assert(file,
+         ExcMessage("You can't ask for the std::ostream object for the output "
+                    "file if none had been set before."));
   return *file;
 }
 
-- 
2.39.5