File: evt.go

package info (click to toggle)
golang-github-wenerme-astgo 0.0~git20230926.1b5bc38-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 612 kB
  • sloc: makefile: 16
file content (10 lines) | stat: -rw-r--r-- 234 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
package amimodels

import "github.com/pkg/errors"

func (evt OriginateResponseEvent) Err() error {
	if evt.Response == "Failure" {
		return errors.Errorf("Originate failed: exten %v reason %v", evt.Exten, evt.Reason)
	}
	return nil
}