Gulpman Lua error - with and without traceback
I have done the Lua traceback changes for all calls from our C++ helper class (dofile, docall, etc.) a
few days ago ... what is the difference we are likely to see?
The ideas is basically that you should be able to trace down the error easier. These don't show a lot of extra detail, but I'm sure you'll get the idea.
...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a'
stack traceback:
[C]: in ?
[C]: in function 'require'
.../iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua:27: in main chunk
...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a'
stack traceback:
[C]: in ?
[C]: in function 'require'
.../iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua:27: in main chunk in /Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua
Failed to load main.lua
...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a'
...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a' in /Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua
Failed to load main.lua
The ideas is basically that you should be able to trace down the error easier. These don't show a lot of extra detail, but I'm sure you'll get the idea.
With traceback generated by our helper function
ERROR STRING
error loading module 'controllers/DemoController' from file '/Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/controllers/DemoController.lua':...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a'
stack traceback:
[C]: in ?
[C]: in function 'require'
.../iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua:27: in main chunk
PRINTED BY GULPMAN
Lua error: error loading module 'controllers/DemoController' from file '/Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/controllers/DemoController.lua':...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a'
stack traceback:
[C]: in ?
[C]: in function 'require'
.../iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua:27: in main chunk in /Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua
Failed to load main.lua
Standard Error
ERROR STRING
error loading module 'controllers/DemoController' from file '/Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/controllers/DemoController.lua':...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a'
PRINTED BY GULPMAN
Lua error: error loading module 'controllers/DemoController' from file '/Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/controllers/DemoController.lua':...Gulpman/data/data/scripts/controllers/DemoController.lua:57: syntax error near 'a' in /Users/rob/Current_Projects/iPhone/gulpman_clone/Gulpman/data/data/scripts/main.lua
Failed to load main.lua
0 Comments:
Post a Comment
<< Home