Add file:line trace to stub function errors