logging: add new RateLimiter helper class
[folly.git] / folly / ScopeGuard.h
index 26531cd87c9e626c836299bbbafbd58148a159ed..ad96afdc4c5a37a1a9944437d1b77a9b8daba591 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -83,7 +83,7 @@ class ScopeGuardImplBase {
       function();
     } catch (...) {
       warnAboutToCrash();
-      throw;
+      std::terminate();
     }
   }