Reply error message when server's task failed
authorSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 6 Jan 2020 06:18:26 +0000 (15:18 +0900)
committer권상완/Security 2Lab(SR)/Engineer/삼성전자 <sangwan.kwon@samsung.com>
Mon, 13 Jan 2020 03:51:29 +0000 (12:51 +0900)
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
src/vist/rmi/impl/ondemand/server.hpp

index bb8b5d9..5745fbd 100644 (file)
@@ -79,6 +79,8 @@ private:
                                        connection->send(reply);
                                } catch (const std::exception& e) {
                                        ERROR(VIST) << e.what();
+                                       Message reply = Message(Message::Type::Error, e.what());
+                                       connection->send(reply);
                                }
                        };