feature: Return true errors upon failure on basalt.autoUpdate
#39
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
It seems like
basalt.autoUpdate()does not return true errors upon failure. Instead, it prints the error itself, and returns normally. This causes some things that depend on true errors to fail, such aspcallorxpcall.This effectively makes implementing custom backtraces for basalt impossible. As a real example of this, running basalt inside of mbs will not print the backtrace, as mbs expects the program to raise an actual
errorupon failure.The main usage I have for this is to log the backtrace:
In the code above,
log_tracebackand the code inside theifwill never execute, regardless of the failure status ofautoUpdate.Minimal Working Example
Describe the solution you'd like
Calling
errorwith the message displayed passed as an argument that can be catched.Hello and thank you, currently i am simulating an error when something unexpected happens. I should probably use 'error' instead, like you said. A bad decision by me.
I will add this into my todo list, currently i'm reworking the objectsystem, which means it will take a bit before i'll add this feature.