Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages stack trace missing. #11

Open
Nifim opened this issue Dec 23, 2022 · 0 comments
Open

Error messages stack trace missing. #11

Nifim opened this issue Dec 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Nifim
Copy link
Contributor

Nifim commented Dec 23, 2022

Shown here as timers and burdometer load they error, but the details of the error are lacking, only stating "C++ exception"
image

here is the init script used:

print('Initializing...')

local command = require('core.command')
local list = require('list')

setmetatable(_G, {
    __index = function(t, k)
        local ok, data = pcall(require, k)
        if not ok then
            return nil
        end

        t[k] = data
        return t[k]
    end,
})

local errors = list()

local input = function(str)
    local out = '[init] ' .. str
    print(out)
    local ok, error = pcall(command.input, str)
    if not ok then
        errors:add(out .. ' | ' .. error)
    end
end

for bind, cmd in pairs(require('binds')) do
    -- input('/bind ' .. bind .. ' "' .. cmd .. '"')
end

for alias, cmd in pairs(require('aliases')) do
    input('/alias ' .. alias .. ' /' .. cmd)
end

for _, addon_name in ipairs(require('addons')) do
    input('/load ' .. addon_name)
end

for _, error in pairs(errors) do
    print('Error/' .. error)
end
@alphaONE2 alphaONE2 added the bug Something isn't working label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants