change invalid path exception to warning