fix server ExecOp::error()

This commit is contained in:
Michael Davidsaver
2020-02-25 12:28:13 -08:00
parent d23fe0e9d5
commit 1663c0b775
+4 -1
View File
@@ -47,7 +47,10 @@ struct ServerGPR : public ServerOp
* PUT w/o subcmd&0x40 and !value
*/
if(cmd==CMD_GET || (cmd==CMD_PUT && (subcmd&0x40))) {
if(!msg.empty()) {
// noop
} else if(cmd==CMD_GET || (cmd==CMD_PUT && (subcmd&0x40))) {
if(!value || Value::Helper::desc(value)!=this->type.get())
throw std::logic_error("GET must reply with exact type previously passed to connect()");