Added url logging on errors