Merge pull request #3441 from gravitl/nmctl-access-token

feat: add support for user access tokens in nmctl
This commit is contained in:
Aceix
2025-05-20 03:46:24 +00:00
committed by GitHub
parent f9bc3a5386
commit 506f73ebb9
9 changed files with 185 additions and 7 deletions

View File

@@ -192,7 +192,7 @@ retry:
body := new(T)
if len(resBodyBytes) > 0 {
if err := json.Unmarshal(resBodyBytes, body); err != nil {
log.Fatalf("Error unmarshalling JSON: %s", err)
log.Fatalf("Error unmarshalling JSON: %s %s", err, string(resBodyBytes))
}
}
return body