OnError
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage:WaitForChild("Packages") local require = require(require(Packages:WaitForChild("knight")).import) local errorHandler = require("core/class/ErrorHandler") (errorHandler.OnError :: BindableEvent).Event:Connect(function(errorPayload: { runType: string; isShared: boolean; child: Instance; trace: string; message: string; timestamp: number; }) -- Your custom error handling here end)