log all API errors

Signed-off-by: Victor Vieux <vieux@docker.com>