Make the error message more clear by adding the file name, the
line number and the function name where the error happened.