From 9ee2e97738124771f496c827a4aac576d8ef0a5f Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 21 Jun 2019 18:37:07 -0700 Subject: [PATCH] fix derp in license adding via shell --- Shell.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shell.cc b/Shell.cc index e5ebf16f..a72dc7a2 100644 --- a/Shell.cc +++ b/Shell.cc @@ -96,9 +96,9 @@ commands:\n\ } else if (starts_with(token, "access-key=")) { if (token.size() > 23) { - throw invalid_argument("access-key is too long bytes"); + throw invalid_argument("access-key is too long"); } - strcpy(l->gc_password, token.c_str() + 11); + strcpy(l->access_key, token.c_str() + 11); } else if (starts_with(token, "serial=")) { l->serial_number = stoul(token.substr(7));