Closed pq closed 6 years ago
/cc @catfact
norns.scripterror()
is called with no arguments here:
https://github.com/catfact/norns/blob/dev/lua/script.lua#L41
this should probably use norns.try
(as far as i can tell)
this functionality seems messy and error-prone to me - interdependency on script.lua
, menu.lua
and norns.lua
i think this would be better filed against matron
in the norns
repo - maiden
has no control over this as the repl is just echos whatever is sent over the socket
@catfact should this get moved to the norns repo?
yes i agree
this stuff is also printed to the norns screen... sometimes? maybe?
This issue was moved to catfact/norns#358
currently (at least some) script errors provide very little information to the REPL (e.g.,
### SCRIPT ERROR
and nothing more). if we're trapping the error it'd be great to pass more back (in the repl or log).a few observations:
to reproduce, put this into an
init()
and play:result: