Publish.Cli: Tweaked error handling