package api import "errors" // wsError turns a string from an agent reply into an error. func wsError(s string) error { return errors.New(s) }