Add NewError -> Result with no data
This commit is contained in:
parent
55e2ce9de2
commit
06a0ac8188
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue