Skip to content

Commit fd8d154

Browse files
committed
Addendum to a634720: Fix typo
1 parent a634720 commit fd8d154

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

utils/buildactions/install_cef.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ newaction {
9999

100100
if not os.isdir(CEF_PATH) then
101101
if not os.mkdir(CEF_PATH) then
102-
errmsg("ERROR: Could not create cef folder")
102+
errormsg("ERROR: Could not create cef folder")
103103
os.exit(1)
104104
return
105105
end
@@ -146,26 +146,26 @@ newaction {
146146

147147
-- Delete old CEF files
148148
if not os.rmdir(CEF_PATH) then
149-
errmsg("ERROR: Could not delete cef folder")
149+
errormsg("ERROR: Could not delete cef folder")
150150
os.exit(1)
151151
return
152152
end
153153

154154
if not os.mkdir(CEF_PATH) then
155-
errmsg("ERROR: Could not create cef folder (2)")
155+
errormsg("ERROR: Could not create cef folder (2)")
156156
os.exit(1)
157157
return
158158
end
159159

160160
-- Extract first bz2 and then tar
161161
if not os.extract_archive(archive_path, CEF_PATH, true) then -- Extract .tar.bz2 to .tar
162-
errmsg("ERROR: Could not extract .tar.bz2")
162+
errormsg("ERROR: Could not extract .tar.bz2")
163163
os.exit(1)
164164
return
165165
end
166166

167167
if not os.extract_archive(CEF_PATH.."temp.tar", CEF_PATH, true) then -- Extract .tar
168-
errmsg("ERROR: Could not extract .tar")
168+
errormsg("ERROR: Could not extract .tar")
169169
os.exit(1)
170170
return
171171
end
@@ -175,7 +175,7 @@ newaction {
175175

176176
-- Delete .tar archive, but keep .tar.bz2 for checksumming
177177
if not os.remove(CEF_PATH.."temp.tar") then
178-
errmsg("ERROR: Could not remove temp.tar")
178+
errormsg("ERROR: Could not remove temp.tar")
179179
os.exit(1)
180180
return
181181
end

utils/buildactions/install_data.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ newaction {
2323
-- Make Bin directory if not exists
2424
local success, message = os.mkdir(BIN_DIR)
2525
if not success then
26-
errmsg("ERROR: Couldn't create Bin directory", "\n"..message)
26+
errormsg("ERROR: Couldn't create Bin directory", "\n"..message)
2727
os.exit(1)
2828
return
2929
end
@@ -32,7 +32,7 @@ newaction {
3232
if os.host() == "windows" then
3333
local success, message = os.copydir(DATA_DIR, BIN_DIR)
3434
if not success then
35-
errmsg("ERROR: Couldn't create copy data directory", "\n"..message)
35+
errormsg("ERROR: Couldn't create copy data directory", "\n"..message)
3636
os.exit(1)
3737
return
3838
end
@@ -41,22 +41,22 @@ newaction {
4141
-- Copy configs if they don't already exist
4242
local success, message = os.copydir("Server/mods/deathmatch", BIN_DIR.."/server/mods/deathmatch", "*.conf", false, true)
4343
if not success then
44-
errmsg("ERROR: Couldn't copy server config files", "\n"..message)
44+
errormsg("ERROR: Couldn't copy server config files", "\n"..message)
4545
os.exit(1)
4646
return
4747
end
4848

4949
local success, message = os.copydir("Server/mods/deathmatch", BIN_DIR.."/server/mods/deathmatch", "*.xml", false, true)
5050
if not success then
51-
errmsg("ERROR: Couldn't copy server xml files", "\n"..message)
51+
errormsg("ERROR: Couldn't copy server xml files", "\n"..message)
5252
os.exit(1)
5353
return
5454
end
5555

5656
-- Make sure server/x64 directory exists
5757
local success, message = os.mkdir(BIN_DIR.."/server/x64")
5858
if not success then
59-
errmsg("ERROR: Couldn't create server/x64 directory", "\n"..message)
59+
errormsg("ERROR: Couldn't create server/x64 directory", "\n"..message)
6060
os.exit(1)
6161
return
6262
end
@@ -73,19 +73,19 @@ newaction {
7373
end
7474

7575
if not os.copyfile(BIN_DIR.."/MTA/netc.dll", BIN_DIR.."/MTA/netc_d.dll") then
76-
errmsg("ERROR: Could not copy netc.dll")
76+
errormsg("ERROR: Could not copy netc.dll")
7777
os.exit(1)
7878
return
7979
end
8080

8181
if not os.copyfile(BIN_DIR.."/server/net.dll", BIN_DIR.."/server/net_d.dll") then
82-
errmsg("ERROR: Could not copy server/net.dll")
82+
errormsg("ERROR: Could not copy server/net.dll")
8383
os.exit(1)
8484
return
8585
end
8686

8787
if not os.copyfile(BIN_DIR.."/server/x64/net.dll", BIN_DIR.."/server/x64/net_d.dll") then
88-
errmsg("ERROR: Could not copy server/x64/net.dll")
88+
errormsg("ERROR: Could not copy server/x64/net.dll")
8989
os.exit(1)
9090
return
9191
end
@@ -100,7 +100,7 @@ newaction {
100100
end
101101

102102
if not os.copyfile(BIN_DIR.."/server/x64/net.dylib", BIN_DIR.."/server/x64/net_d.dylib") then
103-
errmsg("ERROR: Could not copy server/x64/net.dylib")
103+
errormsg("ERROR: Could not copy server/x64/net.dylib")
104104
os.exit(1)
105105
return
106106
end
@@ -115,13 +115,13 @@ newaction {
115115
end
116116

117117
if not os.copyfile(BIN_DIR.."/server/net.so", BIN_DIR.."/server/net_d.so") then
118-
errmsg("ERROR: Could not copy server/net.so")
118+
errormsg("ERROR: Could not copy server/net.so")
119119
os.exit(1)
120120
return
121121
end
122122

123123
if not os.copyfile(BIN_DIR.."/server/x64/net.so", BIN_DIR.."/server/x64/net_d.so") then
124-
errmsg("ERROR: Could not copy server/x64/net.so")
124+
errormsg("ERROR: Could not copy server/x64/net.so")
125125
os.exit(1)
126126
return
127127
end

utils/buildactions/install_resources.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ newaction {
1919

2020
-- Extract resources
2121
if not os.extract_archive("temp_resources.zip", EXTRACT_DIR, true) then
22-
errmsg("ERROR: Couldn't unzip resources")
22+
errormsg("ERROR: Couldn't unzip resources")
2323
os.exit(1)
2424
return
2525
end
2626

2727
-- Cleanup
2828
if not os.remove("temp_resources.zip") then
29-
errmsg("ERROR: Couldn't delete downloaded resources zip file")
29+
errormsg("ERROR: Couldn't delete downloaded resources zip file")
3030
os.exit(1)
3131
return
3232
end

utils/buildactions/utils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ function os.expanddir_wildcard(from, to)
8080

8181
-- TODO: Optimize this
8282
if not os.copydir(dir, to) then
83-
errmsg("ERROR: Couldn't copy directory", ("\nTried to copy %s to %s"):format(dir, to))
83+
errormsg("ERROR: Couldn't copy directory", ("\nTried to copy %s to %s"):format(dir, to))
8484
os.exit(1)
8585
return
8686
end
8787

8888
if not os.rmdir(dir) then
89-
errmsg("ERROR: Couldn't remove directory", ("\nTried to remove %s"):format(dir))
89+
errormsg("ERROR: Couldn't remove directory", ("\nTried to remove %s"):format(dir))
9090
os.exit(1)
9191
return
9292
end

0 commit comments

Comments
 (0)