Przeglądaj źródła

fix invalid error reporting

Nicolas Cannasse 11 lat temu
rodzic
commit
26109d9032
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      hxsl/Checker.hx

+ 1 - 1
hxsl/Checker.hx

@@ -571,7 +571,7 @@ class Checker {
 			}
 			loop(e);
 			var sexpr = null;
-			try sexpr = loadShader(path.join(".")) catch( err : Dynamic ) error(Std.string(err), e.pos);
+			try sexpr = loadShader(path.join(".")) catch( err : Error ) error(Std.string(err), e.pos);
 			if( sexpr != null )
 				checkExpr(sexpr, funs, isImport, true);
 		default: