Skip to content

Raise to error if logErroringParsedRecipes is on #1073

@pietro-lopes

Description

@pietro-lopes

if (ex instanceof RecipeComponentException || DevProperties.get().logErroringParsedRecipes) {
ConsoleJS.SERVER.warn("Failed to parse recipe %s! Falling back to vanilla".formatted(recipeStr), ex, POST_SKIP_ERROR);
}

var message = "Failed to parse recipe %s! Falling back to vanilla".formatted(recipeStr);
if (ex instanceof RecipeComponentException && !DevProperties.get().logErroringParsedRecipes) { 
  ConsoleJS.SERVER.warn(message, ex, POST_SKIP_ERROR); 
} else if (DevProperties.get().logErroringParsedRecipes) {
  ConsoleJS.SERVER.error(message, ex, POST_SKIP_ERROR); 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions