Fixxed debug output for lua core errors.

Fixxed debug output for lua core errors.