diff --git a/src/OpenFOAM/db/error/error.H b/src/OpenFOAM/db/error/error.H index 13f88a8755..e7ecf16fbf 100644 --- a/src/OpenFOAM/db/error/error.H +++ b/src/OpenFOAM/db/error/error.H @@ -225,7 +225,7 @@ public: void abort(); //- Print error message - void write(Ostream& os, const bool includeTitle = true) const; + virtual void write(Ostream& os, const bool includeTitle = true) const; // Housekeeping @@ -348,7 +348,7 @@ public: void abort(); //- Print error message - void write(Ostream& os, const bool includeTitle = true) const; + virtual void write(Ostream& os, const bool includeTitle = true) const; };