Minor error handling improvements

This commit is contained in:
Henri DF
2016-03-29 19:31:34 -07:00
parent 019e76114e
commit aea9b0054b
4 changed files with 11 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ int digwatch_fields::field(lua_State *ls)
if(chk == NULL)
{
string err = "nonexistent fieldname passed to digwatch.field()" + string(fieldname);
string err = "nonexistent fieldname passed to digwatch.field(): " + string(fieldname);
fprintf(stderr, "%s\n", err.c_str());
throw sinsp_exception("digwatch.field() error");
}