Skip to content

Commit 5a1b34c

Browse files
authored
Add missing panic in socket mode handler example
1 parent 8db8a65 commit 5a1b34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/socketmode_handler/socketmode_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
func main() {
1616
appToken := os.Getenv("SLACK_APP_TOKEN")
1717
if appToken == "" {
18-
18+
panic("SLACK_APP_TOKEN must be set.\n")
1919
}
2020

2121
if !strings.HasPrefix(appToken, "xapp-") {

0 commit comments

Comments
 (0)