Fixed Newline Break in message dialogs
authorGeorge Pantazis <gpant@noc.grnet.gr>
Wed, 25 Apr 2012 14:15:35 +0000 (17:15 +0300)
committerGeorge Pantazis <gpant@noc.grnet.gr>
Wed, 25 Apr 2012 14:15:35 +0000 (17:15 +0300)
Added loging option when the Restclient has no parameter

Signed-off-by: George Pantazis <gpant@noc.grnet.gr>

trunk/Pithos.Client.WPF/App.xaml.cs
trunk/Pithos.Network/RestClient.cs

index 800813f..f18643c 100644 (file)
@@ -210,7 +210,7 @@ namespace Pithos.Client.WPF
             });
 
 
-            var message = String.Format(@"{0}<LineBreak/>{1}<LineBreak/><LineBreak/>{2}", 
+            var message = String.Format(@"{0}" + Environment.NewLine + "{1}" + Environment.NewLine + "{2}", 
                 WPF.Properties.Resources.Unexpected_Error,
                 WPF.Properties.Resources.We_Apologize, 
                 WPF.Properties.Resources.Please_Submit_Error);
index 32df065..4657d4a 100644 (file)
@@ -107,7 +107,8 @@ namespace Pithos.Network
             : base()
         {
             if (other==null)
-                throw new ArgumentNullException("other");
+                Log.ErrorFormat("[ERROR] No parameters provided to the rest client. \n{0}\n", other);
+                //throw new ArgumentNullException("other");
             Contract.EndContractBlock();
 
             //The maximum error response must be large because missing server hashes are return as a Conflivt (409) error response