~xdavidwu/himitsu-docker

069536017d1f5fdcf0392fdfe407da5f1f30bb68 — xdavidwu 1 year, 6 months ago a885a21
get: indicate not found properly

docker is horrible at protocols
1 files changed, 5 insertions(+), 1 deletions(-)

M cmd/docker-credential-himitsu/get.ha
M cmd/docker-credential-himitsu/get.ha => cmd/docker-credential-himitsu/get.ha +5 -1
@@ 1,5 1,6 @@
use bufio;
use encoding::json;
use fmt;
use himitsu::client;
use himitsu::query;
use net;


@@ 22,7 23,10 @@ fn get(hi: net::socket) void = {
	defer json::finish(json);
	const res = match (client::next(&iter)!) {
	case void =>
		return;
		// see go github.com/docker/docker-credential-helpers/client
		// client.go
		fmt::println("credentials not found in native keychain")!;
		os::exit(255);
	case let s: const str =>
		yield s;
	};