Skip to content

Commit 9bfbbef

Browse files
committed
feat: show node path in afx-exceptions
1 parent 3b92b4d commit 9bfbbef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Expression/Node.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ public static function parse(Lexer $lexer)
103103
if ($lexer->isEnd()) {
104104
throw new Exception(sprintf('Tag was %s is not closed.', $identifier));
105105
}
106-
107106
} catch (Exception $e) {
108-
throw new Exception(sprintf('%s->%s', $identifier, $e->getMessage()));
107+
throw new Exception(sprintf('<%s> %s', $identifier, $e->getMessage()));
109108
}
110109
}
111110
}

0 commit comments

Comments
 (0)