Added argument to control whether to include file and line on error.