Add NewError -> Result with no data

This commit is contained in:
Jae Kwon
2016-03-20 17:20:41 -07:00
parent 55e2ce9de2
commit 06a0ac8188

View File

@@ -35,3 +35,10 @@ func NewResultOK(data []byte, log string) Result {
Log: log,
}
}
func NewError(code CodeType, log string) Result {
return Result{
Code: code,
Log: log,
}
}