Changeset 10076 in josm for trunk


Ignore:
Timestamp:
2016-03-29T21:56:42+02:00 (9 years ago)
Author:
wiktorn
Message:

Better error reporting for hash mismatch.

See: #12264

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CertificateAmendment.java

    r10000 r10076  
    9696            byte[] sha = md.digest(certBytes);
    9797            if (!SHA_HASHES[i].equals(Utils.toHexString(sha)))
    98                 throw new RuntimeException(tr("certificate hash mismatch"));
     98                throw new RuntimeException(tr("Error adding certificate {0} - hash mismatch. Expected {1}, was {2}", CERT_AMEND[i], SHA_HASHES[i], Utils.toHexString(sha)));
    9999
    100100            ByteArrayInputStream certIS = new ByteArrayInputStream(certBytes);
Note: See TracChangeset for help on using the changeset viewer.