From 859a9ec58a43d7bf3530217622a912734939f032 Mon Sep 17 00:00:00 2001 From: George Pantazis Date: Wed, 25 Apr 2012 17:15:35 +0300 Subject: [PATCH] Fixed Newline Break in message dialogs Added loging option when the Restclient has no parameter Signed-off-by: George Pantazis --- trunk/Pithos.Client.WPF/App.xaml.cs | 2 +- trunk/Pithos.Network/RestClient.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.10.4