Skip to content

Commit e47672b

Browse files
committed
lib/dtutils.lua - added delay in check_min_api_version to sllow display of the error
message before script_manager displays an error message.
1 parent 1905be8 commit e47672b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dtutils.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function dtutils.check_min_api_version(min_api, script_name)
6565
dt.print_error("This application is written for lua api version " .. min_api .. " or later.")
6666
dt.print_error("The current lua api version is " .. current_api)
6767
dt.print("ERROR: " .. script_name .. " failed to load. Lua API version " .. min_api .. " or later required.")
68+
dt.control.sleep(2000) -- aqllow time for the error to display before script_manager writes it's error message
6869
error("Minimum API " .. min_api .. " not met for " .. script_name .. ".", 0)
6970
end
7071
end

0 commit comments

Comments
 (0)