Archaegeo / DualUniverseLuaIssues

DualUniverse LUA Issue Tracking
GNU General Public License v3.0
5 stars 0 forks source link

Support error reporting for required modules #28

Open samdeane opened 3 years ago

samdeane commented 3 years ago

If an error occurs in a module you've imported with require, the current reporting system just gives up.

Instead it should be possible to report the error, module and line number, as usual.

Whilst using require is obviously problematic for production, it's immensely useful during development.

EasternGamer commented 3 years ago

Might be a limitation, but maybe they're not really aware of it.

EasternGamer commented 3 years ago

@Archaegeo, was there something like exCall or expCall? I can't remember.

samdeane commented 3 years ago

You can use pcall to trap errors, but you don't get back everything you need, and you have to do it manually anyway, which is daft.

NQ-Ligo commented 2 years ago

Hi there !

Improved error tracking is on our list, but we can't give a date or promise; many priority items are on the list long before that.

samdeane commented 2 years ago

many priority items are on the list long before that.

I understand why that might be, but honestly, do everyone a favour. Fix the tools before you fix the API. You will be using the tools yourself to test the changes you make to the API.

And if your management won't sign off on it because they don't get that, then send 'em to me and I'll knock their heads together ;)