From 54b212e769369ad1a0748a6c6936d6fafbadf004 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Tue, 11 Jun 2013 15:42:29 +0100
Subject: [PATCH] ENH: triSurface: improved error message

---
 src/triSurface/triSurface/triSurface.C | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/triSurface/triSurface/triSurface.C b/src/triSurface/triSurface/triSurface.C
index e0e6c265ff7..258958ca69b 100644
--- a/src/triSurface/triSurface/triSurface.C
+++ b/src/triSurface/triSurface/triSurface.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2012 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2013 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -494,6 +494,7 @@ void Foam::triSurface::write
         (
             "triSurface::write(const fileName&, const word&, const bool)"
         )   << "unknown file extension " << ext
+            << " for file " << name
             << ". Supported extensions are '.ftr', '.stl', '.stlb', "
             << "'.gts', '.obj', '.vtk'"
             << ", '.off', '.dx', '.smesh', '.ac' and '.tri'"
-- 
GitLab