diff --git a/SlackNet/SlackException.cs b/SlackNet/SlackException.cs index fdadca3..a8c1c22 100644 --- a/SlackNet/SlackException.cs +++ b/SlackNet/SlackException.cs @@ -13,7 +13,9 @@ public class SlackException : Exception public SlackException(ErrorResponse errorResponse) : base(errorResponse == null ? "Slack returned an unknown error response type" - : $"Slack returned an error response: {errorResponse.Error}.") + : string.Join(Environment.NewLine, + new[] { $"Slack returned an error response: {errorResponse.Error}." } + .Concat(errorResponse.ResponseMetadata?.Messages ?? []))) { ErrorCode = errorResponse?.Error ?? "unknown"; ErrorMessages = errorResponse?.ResponseMetadata?.Messages.ToList() ?? []; diff --git a/SlackNet/WebApi/CallsApi.cs b/SlackNet/WebApi/CallsApi.cs index 1b3de05..9f4aa00 100644 --- a/SlackNet/WebApi/CallsApi.cs +++ b/SlackNet/WebApi/CallsApi.cs @@ -14,7 +14,7 @@ public interface ICallsApi /// See the Slack documentation for more information. /// An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service. /// The URL required for a client to join the Call. - /// The valid Slack user ID of the user who created this Call. When this method is called with a user token, the parameter is optional and defaults to the authed user of the token. Otherwise, the field is required. + /// The valid Slack user ID of the user who created this Call. When this method is called with a user token, the parameter is optional and defaults to the authed user of the token. Otherwise, the field is required. /// Call start time. /// When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL. /// An optional, human-readable ID supplied by the 3rd-party Call provider. If supplied, this ID will be displayed in the Call object.