<div dir="ltr"><div>In a Workspace, if I "Do It" the first expression below and "Print It" the second expression, it prints <font face="monospace">3</font> as expected.</div><div><br></div><div><font face="monospace">expression := '1 + 2'.<br>[ Compiler evaluate: expression ] on: Error do: [ :ex | ex inspect ].</font></div><div><br></div><div>Now if I change the <font face="monospace">2</font> in <font face="monospace">expression</font> to <font face="monospace">x</font> and repeat, it prints the following:</div><div><br></div><div><font face="monospace">MessageNotUnderstood: UndefinedObject>>adaptToNumber:andSend:<br></font></div><div><br></div><div>It also writes the following to the Transcript:</div><div><br></div><div><font face="monospace">UndefinedObject>>DoIt (x is Undeclared)</font></div><div><br></div><div>Looking in the Inspect window I see that none of the instance variables contain "x is Undeclared". I really want to get that string. I've searched the <font face="monospace">Compiler</font> methods and haven't found a way to do this. Does anyone know how I could access that error message?</div><div><br></div><div>I'd also like to prevent the error message from being written to the Transcript so I can completely handle it in my code. <br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div></div>