Re: [PATCH] Handle empty string passed to query_owner
On 05/09/17 at 03:46pm, Allan McRae wrote:
> Passing an empty string to pacman -Qo results in:
> error: No package owns <first directory in $PATH>
> Treat an empty string being passed the same as recieving a NULL value
> and exit searching for an owner.
> Signed-off-by: Allan McRae <[hidden email]>
> Running 'pacman -Qo ""' will now just exit pacman. I'm not sure if we
> need an error/warning message for this case.
I don't think we should ever fail silently. I would include an error
the same as any other path we can't resolve.