lib/dtutils.lua - added delay in check_min_api_version to sllow display of the error
message before script_manager displays an error message.
This commit is contained in:
@@ -65,6 +65,7 @@ function dtutils.check_min_api_version(min_api, script_name)
|
||||
dt.print_error("This application is written for lua api version " .. min_api .. " or later.")
|
||||
dt.print_error("The current lua api version is " .. current_api)
|
||||
dt.print("ERROR: " .. script_name .. " failed to load. Lua API version " .. min_api .. " or later required.")
|
||||
dt.control.sleep(2000) -- aqllow time for the error to display before script_manager writes it's error message
|
||||
error("Minimum API " .. min_api .. " not met for " .. script_name .. ".", 0)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user