Fix error reporting from other files