raising a warning if the element is not found

today, if using UIA to write tests, when the element is not found, nothing is raised, this proved to make things difficult to debug in a test for us.
Just raising a simple warning is already enough.