printing the exception if map test is failing.