From 8be8e1b2311abf2c114718c56e526e3388696ea8 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 7 Nov 2015 16:28:13 +0000 Subject: [PATCH] Test-error: Updated to use test the new "...InFunction" macros --- applications/test/error/Test-error.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/test/error/Test-error.C b/applications/test/error/Test-error.C index a6789502c..892c1356e 100644 --- a/applications/test/error/Test-error.C +++ b/applications/test/error/Test-error.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -40,15 +40,15 @@ int main(int argc, char *argv[]) try { - WarningIn("main") << "warning 1" << endl; - IOWarningIn("main", Serr) << "warning 2" << endl; + WarningInFunction << "warning 1" << endl; + IOWarningInFunction(Serr) << "warning 2" << endl; dictionary dict; IOWarningIn("main", dict) << "warning 3" << endl; - FatalErrorIn("main") << "error 1" << endl; - FatalErrorIn("main") << "error 2" << exit(FatalError); + FatalErrorInFunction << "error 1" << endl; + FatalErrorInFunction << "error 2" << exit(FatalError); } catch (Foam::error& fErr) {