Skip to content

Commit

Permalink
HScript parser added to try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
filt3rek committed Oct 24, 2022
1 parent 2872247 commit e1f79a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ftk/format/template/Interp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ class Interp {
hinterp.variables.set( field, Reflect.field( ctx, field ) );
}

var expr = new hscript.Parser().parseString( hscriptSource );
if( runtimePos ){
addSources( expr, hscriptSource );
}
try{
var expr = new hscript.Parser().parseString( hscriptSource );
if( runtimePos ){
addSources( expr, hscriptSource );
}
if( !isInclusion ){
return hinterp.execute( expr );
}else{
Expand Down

0 comments on commit e1f79a0

Please sign in to comment.