From 0d1d811d2ccc27cb72d1f27d6d7aa954f4556ca6 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Sun, 4 Feb 2018 12:31:36 +0100 Subject: [PATCH] use error instead of throw --- hscript/Parser.hx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hscript/Parser.hx b/hscript/Parser.hx index f4f8169..15c4f02 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -979,9 +979,8 @@ class Parser { case "class": var name = getIdent(); var params = {}; - if( maybe(TOp("<")) ) { - throw "Unsupported class type parameters"; - } + if( maybe(TOp("<")) ) + error(EInvalidOp("Unsupported class type parameters"), readPos, readPos); var extend = null; var implement = [];