Drop automatic message prefix from command errors (#384)

This commit is contained in:
Jan Heuermann
2023-10-07 09:15:33 +02:00
committed by GitHub
parent 46c03841ed
commit 93d31e17f4
5 changed files with 24 additions and 15 deletions
-8
View File
@@ -127,11 +127,3 @@ func callAnyFunction(f reflect.Value, bindings bindings) (out []any, err error)
}
return out, nil
}
func callMethod(name string, v, f reflect.Value, bindings bindings) error {
err := callFunction(f, bindings)
if err != nil {
return fmt.Errorf("%s.%s(): %w", v.Type(), name, err)
}
return nil
}