Added error messages for the last two exceptions