Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1621)

Unified Diff: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs

Issue 955443003: [VS Addin] Fix error handling on webserver startup error (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs
diff --git a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs
index 2d7c144b2ff9385a49ff50feb2a3a98e41a9bbd4..13adfb9c8e8a8a3714e517fb02e333087e04d2c2 100644
--- a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs
+++ b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/WebServer.cs
@@ -67,6 +67,10 @@ namespace NativeClientVSAddIn
httpd = Path.Combine(properties.SDKRootDirectory, "tools", "httpd.py");
string webServerArguments = httpd + " --no_dir_check " + webServerPort;
+ webServerOutputPane_.Clear();
+ webServerOutputPane_.OutputString(Strings.WebServerStartMessage + "\n");
+ webServerOutputPane_.Activate();
+
// Start the web server process.
try
{
@@ -88,12 +92,7 @@ namespace NativeClientVSAddIn
{
webServerOutputPane_.OutputString(Strings.WebServerStartFail + "\n");
webServerOutputPane_.OutputString("Exception: " + e.Message + "\n");
- webServerOutputPane_.Activate();
}
-
- webServerOutputPane_.Clear();
- webServerOutputPane_.OutputString(Strings.WebServerStartMessage + "\n");
- webServerOutputPane_.Activate();
}
/// <summary>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698