diff --git a/internal/slackerror/errors.go b/internal/slackerror/errors.go index df3fe22a..50fee84e 100644 --- a/internal/slackerror/errors.go +++ b/internal/slackerror/errors.go @@ -806,9 +806,13 @@ Otherwise start your app for local development with: %s`, }, ErrInvalidAppDirectory: { - Code: ErrInvalidAppDirectory, - Message: "This is an invalid Slack app project directory", - Remediation: fmt.Sprintf("A valid Slack project includes the Slack hooks file: %s", filepath.Join(".slack", "hooks.json")), + Code: ErrInvalidAppDirectory, + Message: "This is an invalid Slack app project directory", + Remediation: strings.Join([]string{ + fmt.Sprintf("A valid Slack project includes the Slack hooks file: %s", filepath.Join(".slack", "hooks.json")), + "", + "If this is a Slack project, you can initialize it with " + style.Commandf("init", false), + }, "\n"), }, ErrInvalidAppFlag: { @@ -1292,12 +1296,16 @@ Otherwise start your app for local development with: %s`, Code: ErrSDKHookNotFound, Message: fmt.Sprintf("A script in %s was not found", style.Highlight(filepath.Join(".slack", "hooks.json"))), Remediation: strings.Join([]string{ - fmt.Sprintf("Hook scripts are defined in the Slack hooks file ('%s').", filepath.Join(".slack", "hooks.json")), - "Every app requires a Slack hooks file and you can find a working example at:", + "Hook scripts are defined in one of these Slack hooks files:", + "- slack.json", + "- " + filepath.Join(".slack", "hooks.json"), + "", + "Every app requires a Slack hooks file and you can find an example at:", + style.Highlight("https://github.com/slack-samples/deno-starter-template/blob/main/slack.json"), "", - style.Highlight("https://github.com/slack-samples/deno-starter-template/blob/main/.slack/hooks.json"), + "You can create a hooks file manually or with the " + style.Commandf("init", false) + " command.", "", - "After creating the hooks file, you must install related hook dependencies.", + "When manually creating the hooks file, you must install the hook dependencies.", }, "\n"), },