Updating error message to also show part of the code, making it easier to find the error