Skip to content

Commit

Permalink
1085: move from internal error to made up error (#1091)
Browse files Browse the repository at this point in the history
* move from internal error to made up error
  • Loading branch information
al-niessner authored Jan 6, 2025
1 parent 3591f1a commit 8b383e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/java/gov/nasa/pds/tools/validate/ProblemType.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 44,8 @@ public enum ProblemType {

CONTEXT_REFERENCE_NOT_FOUND("error.label.context_ref_not_found"),

CONNECTION_ERROR("error.connection.registry"),

OUT_OF_MEMORY("error.validation.out_of_memory", ProblemCategory.EXECUTION),

INTERNAL_ERROR("error.validation.internal_error"),
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/gov/nasa/pds/validate/ValidateLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 120,6 @@
import gov.nasa.pds.validate.report.XmlReport;
import gov.nasa.pds.validate.util.ToolInfo;
import gov.nasa.pds.validate.util.Utility;
import jdk.internal.org.jline.utils.Log;

/**
* Wrapper class for the Validate Tool. Class handles command-line parsing and querying, in addition
Expand Down Expand Up @@ -561,7 560,7 @@ private void getLatestJsonContext() {
} catch (IOException ex) {
try {
ValidationProblem p = new ValidationProblem(new ProblemDefinition(ExceptionType.ERROR,
ProblemType.INTERNAL_ERROR,
ProblemType.CONNECTION_ERROR,
"Error connecting to Registry to update registered context products config file. Verify internet connection and try again."),
registeredProductsFile.toURI().toURL());
report.record(registeredProductsFile.toURI(), p);
Expand Down

0 comments on commit 8b383e4

Please sign in to comment.