diff options
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs index eb70057..31f6ad6 100644 --- a/src/server.rs +++ b/src/server.rs @@ -184,7 +184,9 @@ impl RecvLoop for ServerConn { resp_bytes } Err(e) => { - vec![e.code()] + let mut resp_bytes = vec![e.code()]; + resp_bytes.extend(e.to_string().into_bytes()); + resp_bytes } }; |