Author: martin
Date: 2007-03-14 09:41:50 -0500 (Wed, 14 Mar 2007)
New Revision: 74258
Modified:
trunk/debugger/frontend/Command.cs
Log:
Small fix.
Modified: trunk/debugger/frontend/Command.cs
===================================================================
--- trunk/debugger/frontend/Command.cs 2007-03-14 14:41:37 UTC (rev 74257)
+++ trunk/debugger/frontend/Command.cs 2007-03-14 14:41:50 UTC (rev 74258)
@@ -425,6 +425,9 @@
protected override string Execute (ScriptingContext context,
Expression expression,
DisplayFormat format)
{
+ if (expression is TypeExpression)
+ throw new ScriptingException (
+ "`{0}' is a type, not a variable.",
expression.Name);
object retval = expression.Evaluate (context);
string text = context.FormatObject (retval, format);
context.Print (text);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches