aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-21 13:45:41 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-21 13:45:41 +0100
commit96a3cc1e1f5c0c4e73ad1036a7e0add19d9a197e (patch)
tree3903e11ac310ec441db2360b6951b35c63617974 /src/server.rs
parent5bf3886fa28812d7009fb3bb481f0d3ce3004e18 (diff)
downloadnetapp-96a3cc1e1f5c0c4e73ad1036a7e0add19d9a197e.tar.gz
netapp-96a3cc1e1f5c0c4e73ad1036a7e0add19d9a197e.zip
Implement version check & transmit more error info
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs4
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
}
};