Author: alanmc
Date: 2008-01-11 19:43:57 -0500 (Fri, 11 Jan 2008)
New Revision: 92704

Modified:
   trunk/bitsharp/src/SampleClient/main.cs
Log:
Cosmetic

Modified: trunk/bitsharp/src/SampleClient/main.cs
===================================================================
--- trunk/bitsharp/src/SampleClient/main.cs     2008-01-12 00:41:23 UTC (rev 
92703)
+++ trunk/bitsharp/src/SampleClient/main.cs     2008-01-12 00:43:57 UTC (rev 
92704)
@@ -98,9 +98,10 @@
                         // You can use this to do preprocessing should you 
need to
                         torrent = Torrent.Load(file);
                     }
-                    catch (Exception exception)
+                    catch (Exception e)
                     {
-                        Console.WriteLine("Couldn't decode the torrent");
+                        Console.Write("Couldn't decode {0}: ", file);
+                        Console.WriteLine(e.Message);
                         continue;
                     }
                     // When any preprocessing has been completed, you create a 
TorrentManager
@@ -341,9 +342,9 @@
                {
                        TorrentManager manager = (TorrentManager)sender;
                        if (e.HashPassed)
-                               listener.WriteLine("Hash Passed: " + 
manager.Torrent.Name + " " + e.PieceIndex + "/" + manager.Torrent.Pieces.Count);
+                               Console.WriteLine("Hash Passed: " + 
manager.Torrent.Name + " " + e.PieceIndex + "/" + manager.Torrent.Pieces.Count);
                        else
-                               listener.WriteLine("Hash Failed: " + 
manager.Torrent.Name + " " + e.PieceIndex + "/" + manager.Torrent.Pieces.Count);
+                Console.WriteLine("Hash Failed: " + manager.Torrent.Name + " " 
+ e.PieceIndex + "/" + manager.Torrent.Pieces.Count);
                }
 
                #endregion Handlers for the torrentmanager events

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to