Add source context to error message