remote file:line from decode errors

This commit is contained in:
Michael Davidsaver committed 2021-01-12 11:32:10 -08:00
1 parent 76764cf978
commit e9ce80880d
11 files changed
+39 -25

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ void ServerConn::handle_GET_FIELD()
from_wire(M, ioid);
from_wire(M, subfield);
if(!M.good())
throw std::runtime_error("Error decoding Introspect");
throw std::runtime_error(SB()<<M.file()<<':'<<M.line()<<" Error decoding Introspect");
auto& chan = lookupSID(sid);