Bug report: incorrect place in error message

  • From: Олег Дудка <playermet@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 27 Jul 2015 11:44:22 +0300

Hi!
I noticed a bug with determining the place of the error.
He appears when:
1) The error occurs in standard library function.
2) Result of this function returned directly.

Code to reproduce:
function someFunc()
return type() -- or error('some message')
end

someFunc()

My output:
Error: some/path/to/file.lua:5: bad argument #1 to 'someFunc' (value
expected)

Sorry for my bad English.

Other related posts: