Skip to content

Commit

Permalink
rawdata tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mike31 committed Nov 5, 2017
1 parent 8930869 commit 6cf5927
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rpc/rpcrawdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,11 @@ CScript RawDataScriptCreateUpgrade(Value *param,mc_Script *lpDetails,mc_Script *
}
}

if(protocol_version < 0)
{
*strError=string("Missing protocol-version");
}

if(strError->size() == 0)
{
int err;
Expand Down Expand Up @@ -1077,10 +1082,10 @@ CScript RawDataScriptPublish(Value *param,mc_EntityDetails *entity,uint32_t *dat
}
if(missing_key)
{
*strError=string("Missing keys field");
*strError=string("Missing key field");
if(mc_gState->m_Features->MultipleStreamKeys())
{
*strError=string("Missing key field");
*strError=string("Missing keys field");
}
}

Expand Down

0 comments on commit 6cf5927

Please sign in to comment.