From 548ca90e5724b980f460577aa6be43b6be03fe5b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 3 Feb 2021 15:24:00 -0500 Subject: [PATCH] fix: add docblocks --- plugins/common/common.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/common/common.go b/plugins/common/common.go index 8bb572afa..eab1018c0 100644 --- a/plugins/common/common.go +++ b/plugins/common/common.go @@ -522,10 +522,13 @@ type AppDoesNotExist struct { appName string } +// ExitCode returns an exit code to use in case this error bubbles +// up into an os.Exit() call func (err *AppDoesNotExist) ExitCode() int { return 20 } +// Error returns a standard non-existent app error func (err *AppDoesNotExist) Error() string { return fmt.Sprintf("App %s does not exist", err.appName) }