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

R&D: Check if the error stack traces are helpful or not #25

Open
1 task done
s1n7ax opened this issue Nov 17, 2023 · 0 comments
Open
1 task done

R&D: Check if the error stack traces are helpful or not #25

s1n7ax opened this issue Nov 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@s1n7ax
Copy link
Member

s1n7ax commented Nov 17, 2023

Did you check the docs?

  • I have read all the docs

Is your feature request related to a problem? Please describe.

At the moment, the stacktrace is commented when logging errors. It seems mostly it's just promise stuff in the trace

local function get_error_handler(msg, ...)
msg = string.format(msg, ...)
return function(err)
local trace = debug.traceback()
local log_obj = { msg }
table.insert(log_obj, err)
table.insert(log_obj, trace)
local log_str = table_tostring(log_obj)
log.error(log_str)
notify.error(log_str)
error(log_str)
end
end

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@s1n7ax s1n7ax added the enhancement New feature or request label Nov 17, 2023
@s1n7ax s1n7ax self-assigned this Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant