mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
Fixed minor errors
This commit is contained in:
parent
06b82e6a6d
commit
c44241fdea
1 changed files with 4 additions and 3 deletions
|
@ -16,6 +16,7 @@ end
|
|||
-- This is only meant to be used when errors occur
|
||||
local function oops(err)
|
||||
print("ERROR: ",err)
|
||||
return nil, err
|
||||
end
|
||||
|
||||
local function save_HTML(javascript, filename)
|
||||
|
@ -28,7 +29,7 @@ local function save_HTML(javascript, filename)
|
|||
|
||||
local outfile = io.open(filename, "w")
|
||||
if outfile == nil then
|
||||
return oops("Could not write to file ", filename)
|
||||
return oops(string.format("Could not write to file %s",tostring(filename)))
|
||||
end
|
||||
-- Write the data into it
|
||||
outfile:write(html)
|
||||
|
@ -88,7 +89,7 @@ local function convert_eml_to_html(input, output)
|
|||
|
||||
local infile = io.open(input, "r")
|
||||
if infile == nil then
|
||||
return oops("Could not read file ", input)
|
||||
return oops(string.format("Could not read file %s",tostring(input)))
|
||||
end
|
||||
|
||||
-- Read file, get JS
|
||||
|
@ -108,7 +109,7 @@ local function convert_bin_to_html(input, output, blockLen)
|
|||
|
||||
local infile = io.open(input, "r")
|
||||
if infile == nil then
|
||||
return oops("Could not read file ", input)
|
||||
return oops(string.format("Could not read file %s",tostring(input)))
|
||||
end
|
||||
-- Read file, get JS
|
||||
local javascript = convert_binary_dump_to_JS(infile, blockLen)
|
||||
|
|
Loading…
Reference in a new issue