handle error if we can't handle the given path