From 44a00e67b4014b7582ba5a1ce8078032039d1d12 Mon Sep 17 00:00:00 2001 From: Mat Ryer Date: Mon, 29 Aug 2016 13:11:07 +0100 Subject: [PATCH] minor tweaks --- package/moq/moq.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/moq/moq.go b/package/moq/moq.go index 4cd2ac2..3ed65ec 100644 --- a/package/moq/moq.go +++ b/package/moq/moq.go @@ -182,9 +182,9 @@ type {{.Name}}Mock struct { {{ end }}} {{ range .Methods }} // {{.Name}} calls the mocked {{.Name}}Func function. -func (mock *{{.Name}}Mock) {{.Name}}({{ .Arglist }}) {{.ReturnArglist}} { +func (mock {{.Name}}Mock) {{.Name}}({{ .Arglist }}) {{.ReturnArglist}} { if mock.{{.Name}} == nil { - panic("moq: {{.Name}}Func is nil") + panic("moq: {{.Name}}Func is nil but was just called") } return mock.{{.Name}}Func({{ .ArgCallList }}) }