Make SemiFuture::via throw on nullptr executor.
[folly.git] / folly / futures / FutureException.cpp
index ecbf03da3c5f4bda7233e67dcdf5d65cbf39e517..d21d6f9425b2abb8c0ae827113960e466a2cb25e 100644 (file)
@@ -42,7 +42,9 @@ namespace folly {
   throw PredicateDoesNotObtain();
 }
 
-[[noreturn]] void throwNoFutureInSplitter() {
-  throw NoFutureInSplitter();
+[[noreturn]] void throwNoFutureInSplitter() { throw NoFutureInSplitter(); }
+
+    [[noreturn]] void throwNoExecutor() {
+  throw NoExecutor();
 }
 } // namespace folly