add role diff (#26)

This commit is contained in:
T. von Dein
2026-06-03 08:47:54 +02:00
parent 0696095bb0
commit 18af1b6073
5 changed files with 425 additions and 7 deletions

View File

@@ -33,7 +33,12 @@ func esErrorString(err error) string {
causes += fmt.Sprintf("%s\n", *cause.Reason)
}
msg = *e.ErrorCause.Reason + ": " + causes
if e.ErrorCause.Reason != nil {
msg = *e.ErrorCause.Reason + ": " + causes
} else {
msg = fmt.Sprintf("http status %d: ", e.Status)
}
}
return msg