Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaybhargavb committed Apr 16, 2015
1 parent 4407eee commit 509fd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Microsoft.AspNet.Mvc.Razor/RazorPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,8 @@ public async Task<HtmlString> FlushAsync()
// change.
if (_writerScopes.Count > 0)
{
throw new InvalidOperationException(Resources.FormatRazorPage_CannotFlushWhileInAWritingScope(nameof(FlushAsync), Path));
throw new InvalidOperationException(
Resources.FormatRazorPage_CannotFlushWhileInAWritingScope(nameof(FlushAsync), Path));
}

// Calls to Flush are allowed if the page does not specify a Layout or if it is executing a section in the
Expand Down
2 changes: 1 addition & 1 deletion test/Microsoft.AspNet.Mvc.Razor.Test/RazorPageTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public async Task RenderSection_ThrowsIfPreviousSectionWritersIsNotSet()
// Assert
Assert.Equal("RenderSection invocation in '/Views/TestPath/Test.cshtml' is invalid. " +
"RenderSection can only be called from a layout page.",
ex.Message);
ex.Message);
}

[Fact]
Expand Down

0 comments on commit 509fd77

Please sign in to comment.