Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit f2a390b

Browse files
committed
Fix a big oopsie
1 parent 39f17a2 commit f2a390b

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

TypeWriter/Actions/Execute/Init.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,19 @@ return function()
6565
local MainEntry = Import(ProcessInfo.Entrypoints.Main)
6666

6767
if not MainEntry then
68-
ProcessHelper.Fail("The main entry of " .. ProcessInfo.ID .. " '" .. ProcessInfo.Entrypoints.Main .. "' was not found!")
68+
Logger.Error("The main entry of " .. ProcessInfo.ID .. " '" .. ProcessInfo.Entrypoints.Main .. "' was not found!")
6969
process:exit(1)
7070
end
7171

7272
local EntryWorked, EntryError = pcall(function()
7373
MainEntry.OnInitialize()
7474
end)
7575

76+
if not EntryWorked then
77+
Logger.Error("Error in runtime, " .. EntryError)
78+
end
79+
80+
--[[
7681
if not EntryWorked then
7782
7883
local ParseStepOne = Split(EntryError, "\\")
@@ -93,5 +98,5 @@ return function()
9398
else
9499
Logger.Info("Process complete")
95100
Logger.Info("Exiting...")
96-
end
101+
end]]
97102
end

TypeWriter/Actions/Run/Init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ return function(Args)
3434
local MainEntry = Import(ProcessInfo.Entrypoints.Main)
3535

3636
if not MainEntry then
37-
ProcessHelper.Fail("The main entry of " .. ProcessInfo.ID .. " '" .. ProcessInfo.Entrypoints.Main .. "' was not found!")
37+
Logger.Error("The main entry of " .. ProcessInfo.ID .. " '" .. ProcessInfo.Entrypoints.Main .. "' was not found!")
3838
process:exit(1)
3939
end
4040

TypeWriter/Libs/Run/Import.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ local Split = require("Split")
33
local Logger = require("Logger")
44

55
return function(Path)
6-
76

87
local PathSplitted = Split(Path, ".")
98
local LastExistedPath = {}
@@ -17,13 +16,13 @@ return function(Path)
1716

1817
local RealPath = ProcessPath .. "Running/" .. ConcPath
1918
local LuaPath = RealPath .. ".lua"
20-
Logger.Debug(RealPath)
21-
Logger.Debug(LuaPath)
19+
Logger.Debug("Real" .. tostring(RealPath))
20+
Logger.Debug("Lua" .. tostring(LuaPath))
2221

2322
local PathExists = FS.existsSync(RealPath)
2423
local LuaExists = FS.existsSync(LuaPath)
25-
Logger.Debug(PathExists)
26-
Logger.Debug(LuaExists)
24+
Logger.Debug("PathEx" .. tostring(PathExists))
25+
Logger.Debug("LuaEx" .. tostring(LuaExists))
2726

2827
local OneExists = PathExists-- or LuaExists
2928

0 commit comments

Comments
 (0)