From 3583ee613887698d695e1159d6e6a839bdb25cf7 Mon Sep 17 00:00:00 2001 From: Spartucus Date: Wed, 30 May 2018 17:56:20 +0800 Subject: [PATCH] Fix non-void function return value Since last catch insert exception string to `ss`, it should returns. --- src/exception.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/exception.cpp b/src/exception.cpp index bc72783..8814f53 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -251,6 +251,7 @@ namespace fc } catch( ... ) { ss << "<- exception in to_string.\n"; } + return ss.str(); } [[noreturn]] void exception_factory::rethrow( const exception& e )const