Now considering Response.End() in formatters execution so no error message is displayed in the log.

This commit is contained in:
Dario Solera 2010-06-03 10:31:24 +00:00
parent 44311ba307
commit 6195533a07
2 changed files with 12 additions and 5 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.2.541")]
[assembly: AssemblyFileVersion("3.0.2.541")]
[assembly: AssemblyVersion("3.0.2.542")]
[assembly: AssemblyFileVersion("3.0.2.542")]

View file

@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using ScrewTurn.Wiki.PluginFramework;
using System.Web;
using System.Threading;
namespace ScrewTurn.Wiki {
@ -65,10 +66,12 @@ namespace ScrewTurn.Wiki {
raw = provider.Format(raw, info, FormattingPhase.Phase1);
}
catch(Exception ex) {
if(!(ex is ThreadAbortException)) { // Consider Response.End()
Log.LogEntry("Provider " + provider.Information.Name + " failed to perform Phase1 (silently resuming from next provider): " + ex.ToString(), EntryType.Error, Log.SystemUsername);
}
}
}
}
raw = Formatter.Format(raw, forIndexing, context, current, out linkedPages);
@ -79,10 +82,12 @@ namespace ScrewTurn.Wiki {
raw = provider.Format(raw, info, FormattingPhase.Phase2);
}
catch(Exception ex) {
if(!(ex is ThreadAbortException)) { // Consider Response.End()
Log.LogEntry("Provider " + provider.Information.Name + " failed to perform Phase2 (silently resuming from next provider): " + ex.ToString(), EntryType.Error, Log.SystemUsername);
}
}
}
}
return raw;
}
@ -109,10 +114,12 @@ namespace ScrewTurn.Wiki {
raw = provider.Format(raw, info, FormattingPhase.Phase3);
}
catch(Exception ex) {
if(!(ex is ThreadAbortException)) { // Consider Response.End()
Log.LogEntry("Provider " + provider.Information.Name + " failed to perform Phase3 (silently resuming from next provider): " + ex.ToString(), EntryType.Error, Log.SystemUsername);
}
}
}
}
return raw;
}