From 2ecf2e13f2c68223e38af28cd905edcdc6b33b79 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Sat, 3 Nov 2007 08:55:20 +0000 Subject: [PATCH] better error messages --- Robust/src/IR/Tree/SemanticCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Robust/src/IR/Tree/SemanticCheck.java b/Robust/src/IR/Tree/SemanticCheck.java index 7680db3d..8f4d5649 100644 --- a/Robust/src/IR/Tree/SemanticCheck.java +++ b/Robust/src/IR/Tree/SemanticCheck.java @@ -470,7 +470,7 @@ public class SemanticCheck { String varname=nd.toString(); Descriptor d=(Descriptor)nametable.get(varname); if (d==null) { - throw new Error("Name "+varname+" undefined"); + throw new Error("Name "+varname+" undefined in: "+md); } if (d instanceof VarDescriptor) { nn.setVar(d); @@ -732,7 +732,7 @@ public class SemanticCheck { } } if (bestmd==null) - throw new Error("No method found for :"+min.printNode(0)); + throw new Error("No method found for :"+min.printNode(0)+" in class: " + classtolookin); min.setMethod(bestmd); if ((td!=null)&&(min.getType()!=null)&&!typeutil.isSuperorType(td, min.getType())) -- 2.34.1