Comment out an unused 'str' and add a WriteLine to use

an "Exception e" with e.ToString() to eliminate 2 warnings.
0.6.0-stable
Charles Krinke 2008-03-21 17:06:31 +00:00
parent 21e5e65bb7
commit 1e452dacf4
2 changed files with 5 additions and 2 deletions

View File

@ -292,7 +292,7 @@ namespace OpenSim.Grid.GridServer
catch (FormatException e) catch (FormatException e)
{ {
m_log.Info("[GRID]: Invalid login parameters, ignoring."); m_log.Info("[GRID]: Invalid login parameters, ignoring.");
return ErrorResponse("Wrong format in login parameters. Please verify parameters."); return ErrorResponse("Wrong format in login parameters. Please verify parameters." + e.ToString() );
} }
existingSim = getRegion(sim.regionHandle); existingSim = getRegion(sim.regionHandle);

View File

@ -89,6 +89,8 @@ namespace OpenSim.Region.Environment.Modules
size = Convert.ToInt32(extraParams); size = Convert.ToInt32(extraParams);
} catch (Exception e) { } catch (Exception e) {
//Ckrinke: Add a WriteLine to remove the warning about 'e' defined but not used
Console.WriteLine("Problem with Draw. Please verify parameters." + e.ToString());
} }
if ((size < 128) || (size > 1024)) if ((size < 128) || (size > 1024))
@ -306,7 +308,8 @@ namespace OpenSim.Region.Environment.Modules
private Bitmap ImageHttpRequest(string url) private Bitmap ImageHttpRequest(string url)
{ {
WebRequest request = HttpWebRequest.Create(url); WebRequest request = HttpWebRequest.Create(url);
Stream str = null; //Ckrinke: Comment out for now as 'str' is unused. Bring it back into play later when it is used.
//Ckrinke Stream str = null;
HttpWebResponse response = (HttpWebResponse)(request).GetResponse(); HttpWebResponse response = (HttpWebResponse)(request).GetResponse();
if (response.StatusCode == HttpStatusCode.OK) if (response.StatusCode == HttpStatusCode.OK)
{ {