From: George Pantazis Date: Wed, 25 Apr 2012 14:15:35 +0000 (+0300) Subject: Fixed Newline Break in message dialogs X-Git-Url: https://code.grnet.gr/git/pithos-ms-client/commitdiff_plain/859a9ec58a43d7bf3530217622a912734939f032 Fixed Newline Break in message dialogs Added loging option when the Restclient has no parameter Signed-off-by: George Pantazis --- diff --git a/trunk/Pithos.Client.WPF/App.xaml.cs b/trunk/Pithos.Client.WPF/App.xaml.cs index 800813f..f18643c 100644 --- a/trunk/Pithos.Client.WPF/App.xaml.cs +++ b/trunk/Pithos.Client.WPF/App.xaml.cs @@ -210,7 +210,7 @@ namespace Pithos.Client.WPF }); - var message = String.Format(@"{0}{1}{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); diff --git a/trunk/Pithos.Network/RestClient.cs b/trunk/Pithos.Network/RestClient.cs index 32df065..4657d4a 100644 --- a/trunk/Pithos.Network/RestClient.cs +++ b/trunk/Pithos.Network/RestClient.cs @@ -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