From 4a986567ecadd3c87e00f0a868295406196c01c2 Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Mon, 26 Jan 2009 10:46:23 +0000 Subject: [PATCH] 2009-01-26 Marek Habersack * CompilationException.cs: added a Message override to make error messages more useful. svn path=/trunk/mcs/; revision=124475 --- mcs/class/System.Web/System.Web.Compilation/ChangeLog | 5 +++++ .../System.Web.Compilation/CompilationException.cs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/mcs/class/System.Web/System.Web.Compilation/ChangeLog b/mcs/class/System.Web/System.Web.Compilation/ChangeLog index 3d5b3addaf7..abcac7996fc 100644 --- a/mcs/class/System.Web/System.Web.Compilation/ChangeLog +++ b/mcs/class/System.Web/System.Web.Compilation/ChangeLog @@ -1,3 +1,8 @@ +2009-01-26 Marek Habersack + + * CompilationException.cs: added a Message override to make error + messages more useful. + 2009-01-23 Gonzalo Paniagua Javier * AspComponentFoundry.cs: no need to throw. Caller handles a null diff --git a/mcs/class/System.Web/System.Web.Compilation/CompilationException.cs b/mcs/class/System.Web/System.Web.Compilation/CompilationException.cs index 21d87bba74a..ca2e44bb8fb 100644 --- a/mcs/class/System.Web/System.Web.Compilation/CompilationException.cs +++ b/mcs/class/System.Web/System.Web.Compilation/CompilationException.cs @@ -85,6 +85,10 @@ namespace System.Web.Compilation info.AddValue ("errorLines", errorLines); } + public override string Message { + get { return ErrorMessage; } + } + public override string SourceFile { get { if (errors == null || errors.Count == 0) -- 2.25.1