print a exceptino message in failure method