Rename error.Fail to error.LuaError
Also prefix the other errors with Lua
Not sure yet, but it seems that would be a good way to namespace things?
Just throwing this out here, I'm not sure I know what is the right answer to this.
But would it make sense to return std.mem.Allocator.Error.OutOfMemory directly from std.mem.Allocator failures instead of translating to error.Memory? I don't have a motivating example case for this, but it feels like it might harmonize error handling code if Ziglua doesn't define another error for OOM.
I agree, reusing the OutOfMemory error would make sense
error.LuaError is a more descriptive than error.Fail
Just getting "error: fail" can be a little annoying