From e47672b4951f2e6d100bbddb528410d1beafd6a7 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sat, 6 May 2023 14:36:22 -0400 Subject: [PATCH] lib/dtutils.lua - added delay in check_min_api_version to sllow display of the error message before script_manager displays an error message. --- lib/dtutils.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dtutils.lua b/lib/dtutils.lua index dcc116a..ee9f4ee 100644 --- a/lib/dtutils.lua +++ b/lib/dtutils.lua @@ -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