diff options
Diffstat (limited to 'vendor/github.com/nlopes/slack/block_conv.go')
-rw-r--r-- | vendor/github.com/nlopes/slack/block_conv.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/nlopes/slack/block_conv.go b/vendor/github.com/nlopes/slack/block_conv.go index 619867ea..b9e61a95 100644 --- a/vendor/github.com/nlopes/slack/block_conv.go +++ b/vendor/github.com/nlopes/slack/block_conv.go @@ -61,7 +61,7 @@ func (b *Blocks) UnmarshalJSON(data []byte) error { case "section": block = &SectionBlock{} default: - return errors.New("unsupported block type") + block = &UnknownBlock{} } err = json.Unmarshal(r, block) @@ -127,7 +127,7 @@ func (b *BlockElements) UnmarshalJSON(data []byte) error { case "static_select", "external_select", "users_select", "conversations_select", "channels_select": blockElement = &SelectBlockElement{} default: - return errors.New("unsupported block element type") + blockElement = &UnknownBlockElement{} } err = json.Unmarshal(r, blockElement) |