Skip to content

Commit

Permalink
Deleted unused parser error reporting for dynamic element construction
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Oct 13, 2024
1 parent f7d71c5 commit ce59c3d
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,9 @@ public void didParseClosingWebObjectTag( final String parsedString ) throws NGDe
throw new NGHTMLFormatException( message );
}

// FIXME:
// That old try/catch gets to stay for a bit, since we still haven't designed a way to catch and report no found dynamic element
// The methods componentName() and prettyPrintDeclaration() are getting deleted on 2024-10-13, in case you want to have a look at them for reference when encountering this in the future
// Hugi 2024-10-13
// try {
final NGElement element = _currentDynamicTag.dynamicElement( _declarations, _languages );
_currentDynamicTag = parentDynamicTag;
_currentDynamicTag.addChildElement( element );
// }
// catch( RuntimeException e ) {
// final String templ = "Unable to load the component named '%s' with the declaration %s. Make sure the .wo folder is where it's supposed to be and the name is spelled correctly.";
// throw new RuntimeException( templ.formatted( componentName( _currentDynamicTag ), prettyPrintDeclaration( _declarations.get( _currentDynamicTag.name() ) ) ), e );
// }
}

public void didParseComment( final String parsedString ) {
Expand Down

0 comments on commit ce59c3d

Please sign in to comment.