Improve error reporting
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 7 Oct 2023 04:39:41 +0000 (06:39 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 7 Oct 2023 04:39:41 +0000 (06:39 +0200)
src/org/argeo/build/Repackage.java

index 2732167646dd830ed8be3036dbe776e4bee713df..8a9cac074e29e13b218440c165edc9afe8b97853 100644 (file)
@@ -1486,7 +1486,8 @@ public class Repackage {
                        // license
                        String spdxLicenseId = SPDX_LICENSE_IDENTIFIER.get(mapping);
                        if (spdxLicenseId == null)
-                               throw new IllegalStateException("An SPDX license id must have beend defined at this stage.");
+                               throw new IllegalStateException(
+                                               "An SPDX license id must have beend defined for " + jarDir + " at this stage.");
                        writer.append("\nIt is redistributed under the following license:\n\n");
                        writer.append("SPDX-Identifier: " + spdxLicenseId + "\n\n");