You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A more robust solution would do something like this:
privatestaticstringGenerateMessage(stringglobalErrorMessage,List<Result<T>>failureItems){varsb=new StringBuilder(globalErrorMessage??"One or more results failed.");foreach(var message in failureItems.Select(x =>$"- {x.Message}"))
sb.AppendLine().Append(message);return sb.ToString();}
The text was updated successfully, but these errors were encountered:
Currently, method give little detail on error.
A more robust solution would do something like this:
The text was updated successfully, but these errors were encountered: