Error message addition to debug lua 5.1 and 5.2 out on GitHub jobs.

This commit is contained in:
Brian Sobulefsky 2022-08-23 22:09:55 -07:00 committed by Emmanuel Lepage Vallee
parent 036b4551c7
commit 1eb8371341
1 changed files with 6 additions and 0 deletions

View File

@ -711,13 +711,17 @@ function screenshot:filepath_builder(args)
local directory = args.directory
local prefix = args.prefix
print("Entering filepath_builder(args)")
print(args)
if filepath and check_filepath(filepath) then
print("First if in filepath_builder")
directory, prefix = parse_filepath(filepath)
elseif directory or prefix then
print("Second if in filepath_builder")
if directory and type(directory) == "string" then
directory = check_directory(directory)
elseif self.directory then
@ -738,11 +742,13 @@ function screenshot:filepath_builder(args)
elseif self.filepath and check_filepath(self.filepath) then
print("Third if in filepath_builder")
filepath = self.filepath
directory, prefix = parse_filepath(filepath)
else
print("Else in filepath_builder")
if self.directory then
directory = self._private.directory -- The setter ran check_directory()
else