google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.34k stars 212 forks source link

starlark: include name of built-in function in errors it returns #191

Closed alandonovan closed 5 years ago

alandonovan commented 5 years ago

The earlier change #174 did this only partially.

To make this easier, the nameErr helper adds the "name: " prefix to an error or string. Also, the signature of builtinMethod has been simplified.