From 01e202b60cc8aceb65fd6c82949e2a2b08142f8c Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 18 一月 2021 10:44:50 +0800
Subject: [PATCH] ADD EBUS_NET

---
 src/bus_error.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bus_error.cpp b/src/bus_error.cpp
index 6cee508..cf16cf2 100644
--- a/src/bus_error.cpp
+++ b/src/bus_error.cpp
@@ -13,9 +13,10 @@
 
 static char *_bus_errlist[_bus_nerr] = {
   "\0",
-  "timeout",
+  "Timeout",
   "The other end is not inline",
-  "Key already in use"
+  "Key already in use",
+  "Network fault"
 
 };
 
@@ -43,7 +44,7 @@
 {
   int s, eindex;
   char *buf;
-  eindex = err - 10000;
+  eindex = err - EBUS_BASE;
   /* Make first caller allocate key for thread-specific data */
 
   s = pthread_once(&once, createKey);

--
Gitblit v1.8.0