static string GetErrorMessageForPackageConsole(Exception ex) { var aggregateEx = ex as AggregateException; if (aggregateEx != null) { var message = new AggregateExceptionErrorMessage(aggregateEx); return(message.ToString()); } return(ex.Message); }
string GetErrorMessage(AggregateException ex) { var errorMessage = new AggregateExceptionErrorMessage(ex); return(errorMessage.ToString()); }
static string GetErrorMessageForPackageConsole (Exception ex) { var aggregateEx = ex as AggregateException; if (aggregateEx != null) { var message = new AggregateExceptionErrorMessage (aggregateEx); return message.ToString (); } return ex.Message; }