fix jump out of local scope
authorRobin Gareus <robin@gareus.org>
Tue, 30 Aug 2016 21:41:07 +0000 (23:41 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 30 Aug 2016 21:41:07 +0000 (23:41 +0200)
scripts/tomsloop.lua

index 72e7607c0180a8ac85259b519a4bcf4dc3e2684e..7d03babac2998068f2dfd660430e0c98cccb25cd 100644 (file)
@@ -124,7 +124,6 @@ function factory (params) return function ()
        end
 
        print ("bounced " .. n_regions_created .. " regions from loop range (" .. loop:length() ..  " frames) to playhead @ frame # " .. playhead)
-       ::errorout::
 
 -- when this script is called as an action, the output will be printed to the ardour log window
        function print_help()
@@ -274,5 +273,6 @@ function factory (params) return function ()
                print("See also: Lua Action Bounce+Replace Regions")
                print("")
        end -- print_help()
+       ::errorout::
 end -- end of anonymous action script function
 end -- end of script factory