Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
6 changes: 3 additions & 3 deletions cmd/fastly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ Compatibility and versioning information for the Fastly CLI is being updated in
// already have a static backup that can be used. Defer another attempt
// until after the TTL has expired.
file.CLI.LastChecked = time.Now().Format(time.RFC3339)
err = file.Write(config.FilePath)
if err != nil {
fileErr := file.Write(config.FilePath)
if fileErr != nil {
text.Break(out)
text.Error(out, "%s: %s", errNotice, err)
text.Error(out, "%s: %s", errNotice, fileErr)
}

checkAgain := fmt.Sprintf("we won't check again until %s have passed", file.CLI.TTL)
Expand Down