From 9651366cb17ba4eae5e8a0fabfbb1638c8c323ed Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 12 Nov 2023 11:31:43 -1000 Subject: [PATCH 1/2] Make the warning on out of year vendor deps more serious --- .../nativeutils/vendordeps/InvalidVendorDepYearException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java b/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java index 330df1c..3ba0147 100644 --- a/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java +++ b/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java @@ -4,7 +4,7 @@ public class InvalidVendorDepYearException extends RuntimeException { public InvalidVendorDepYearException(JsonDependency dependency, String requiredYear) { - super(String.format("Vendor Dependency %s has invalid year %s. Expected to be %s", dependency.name, + super(String.format("Vendor Dependency %s has invalid year %s. Expected to be %s. Do not manually change a prior year dependency. This will not work, and the WPILib team will not offer support if you attempt this.", dependency.name, dependency.frcYear, requiredYear)); } } From eeda7cfc8cd9bb7532b060d06aae8633a6c415d3 Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 12 Nov 2023 16:28:48 -1000 Subject: [PATCH 2/2] Change up message a bit --- .../nativeutils/vendordeps/InvalidVendorDepYearException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java b/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java index 3ba0147..98ff5a3 100644 --- a/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java +++ b/src/main/java/edu/wpi/first/nativeutils/vendordeps/InvalidVendorDepYearException.java @@ -4,7 +4,7 @@ public class InvalidVendorDepYearException extends RuntimeException { public InvalidVendorDepYearException(JsonDependency dependency, String requiredYear) { - super(String.format("Vendor Dependency %s has invalid year %s. Expected to be %s. Do not manually change a prior year dependency. This will not work, and the WPILib team will not offer support if you attempt this.", dependency.name, + super(String.format("Vendor Dependency %s has invalid year %s. Expected to be %s. Reach out to the vendor to get a new version of the dependency. Attempting to modify an existing dependency will break at runtime, and will result in loss of support from the WPILib team.", dependency.name, dependency.frcYear, requiredYear)); } }