From 903b27f875e5f2a872c1b309f354b18c0450f35a Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 04 六月 2021 11:46:18 +0800
Subject: [PATCH] allow tcp request with no dest, auto query topic.

---
 src/shm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/shm.h b/src/shm.h
index 7718611..e005cfc 100644
--- a/src/shm.h
+++ b/src/shm.h
@@ -115,7 +115,7 @@
 		default: break;
 		}
 		if (!IsOk()) {
-			throw("Error: shm can not create/open \"" + name_ + "\"");
+			throw std::runtime_error("Error: shm can not create/open \"" + name_ + "\"");
 		}
 	}
 

--
Gitblit v1.8.0