Browse Source

Shorten error message for insufficient shares

The error message for the NOT_ENOUGH_SHARES error case is too
long, and should not say "to reconstitute the secret" since that
error may also occur when splitting a secret.
master
Damien Goutte-Gattat 5 years ago
parent
commit
3f2f4c8380
  1. 2
      src/gfsec-errors.h

2
src/gfsec-errors.h

@ -19,7 +19,7 @@
GFSEC_ERROR(SUCCESS, 0, "Success")
GFSEC_ERROR(SYSTEM_ERROR, -1, strerror(errno))
GFSEC_ERROR(INVALID_CALL, -2, "A function was improperly called")
GFSEC_ERROR(NOT_ENOUGH_SHARES, -3, "Not enough shares available to reconstitute the secret")
GFSEC_ERROR(NOT_ENOUGH_SHARES, -3, "Not enough shares available")
GFSEC_ERROR(TOO_MANY_SHARES, -4, "Too many shares")
GFSEC_ERROR(SHARE_NOT_AVAILABLE, -5, "A share is not available")
GFSEC_ERROR(INVALID_LENGTH, -6, "Shares have inconsistent lengths")

Loading…
Cancel
Save