summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/scopeguard.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/scopeguard.cxx')
-rw-r--r--comphelper/source/misc/scopeguard.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/misc/scopeguard.cxx b/comphelper/source/misc/scopeguard.cxx
index 66cfd231293d..a8df29a7ac81 100644
--- a/comphelper/source/misc/scopeguard.cxx
+++ b/comphelper/source/misc/scopeguard.cxx
@@ -46,14 +46,14 @@ ScopeGuard::~ScopeGuard()
}
catch (com::sun::star::uno::Exception & exc) {
(void) exc; // avoid warning about unused variable
- OSL_ENSURE(
- false, rtl::OUStringToOString(
+ OSL_FAIL(
+ rtl::OUStringToOString(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"UNO exception occurred: ") ) +
exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() );
}
catch (...) {
- OSL_ENSURE( false, "unknown exception occurred!" );
+ OSL_FAIL( "unknown exception occurred!" );
}
}
else