Permalink
Browse files

Fixed UserError to show error messages.

  • Loading branch information...
1 parent 391283c commit 940099d8299ca6f103690bdef0211ef0bcf79f57 @otac0n otac0n committed Jul 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Src/IronJS.Runtime/Errors.cs
View
2 Src/IronJS.Runtime/Errors.cs
@@ -81,7 +81,7 @@ public class UserError : Error
public int Column { get; private set; }
public UserError(BoxedValue value, int line, int column)
- : base("") //TODO: Call TypeConverter.ToString on Value
+ : base(TypeConverter.ToString(value))
{
Value = value;
Line = line;

0 comments on commit 940099d

Please sign in to comment.