Skip to content

Commit

Permalink
Merge pull request #398 from monome/script_init_errors
Browse files Browse the repository at this point in the history
report errors in script init
  • Loading branch information
pq authored Jun 4, 2018
2 parents d592623 + fa3e557 commit 901c9e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ end
Script.init = function()
print("# script init")
params.name = norns.state.name
if not pcall(init) then norns.scripterror() end
norns.menu.init()
if norns.try(init, "init") then
norns.menu.init()
end
end

--- load a script from the /scripts folder
Expand Down

0 comments on commit 901c9e3

Please sign in to comment.