Don't freak out if the server doesn't exist on the remote

This commit is contained in:
Dane Everitt
2019-12-16 20:47:35 -08:00
parent 514c16ccc8
commit 92a7c9d231
4 changed files with 41 additions and 14 deletions

View File

@@ -25,3 +25,16 @@ func IsTooFrequentCrashError(err error) bool {
return ok
}
type serverDoesNotExist struct {
}
func (e *serverDoesNotExist) Error() string {
return "server does not exist on remote system"
}
func IsServerDoesNotExistError(err error) bool {
_, ok := err.(*serverDoesNotExist)
return ok
}