~hduran-8/goose/testservice_errors

« back to all changes in this revision

Viewing changes to testservices/errors.go

  • Committer: Horacio Durán
  • Date: 2014-04-30 22:26:01 UTC
  • Revision ID: horacio.duran@canonical.com-20140430222601-8wo8gjb5z3vqhpzb
Go formatted

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
}
23
23
 
24
24
func serverErrorf(code int, message string, args ...interface{}) *ServerError {
25
 
    return &ServerError{code: code, message: fmt.Sprintf(message, args...)}
 
25
        return &ServerError{code: code, message: fmt.Sprintf(message, args...)}
26
26
}
27
27
 
28
28
func (n *ServerError) Error() string {