Skip to content

Commit

Permalink
move from internal error to made up error
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Dec 18, 2024
1 parent 0d76426 commit c27fa03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion src/main/java/gov/nasa/pds/validate/ValidateLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,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 c27fa03

Please sign in to comment.