Implement better_errors for more efficient debugging