Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ if err != nil {
// We do not return the error in this case - destroy was successful
return nil
}
if e.Code == 404 && regexp.MustCompile(`Project .* or database .* does not exist`).MatchString(e.Message) {
// The project or database does not exist, which means the resource is destroyed.
return nil
}

// Return err in all other cases
return err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ package {{ $.Res.PackageName }}_test
import (
"fmt"
"log"
"regexp"
"strconv"
"strings"
"testing"
Expand Down Expand Up @@ -59,6 +60,7 @@ import (
var (
_ = fmt.Sprintf
_ = log.Print
_ = regexp.MatchString
_ = strconv.Atoi
_ = strings.Trim
_ = time.Now
Expand Down