Skip to content

Commit 70ae4ab

Browse files
committed
Return error state if no comparison stat found
1 parent 83a9955 commit 70ae4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/status/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func compareStats(stat, comparisonStat, goal string) (state, string, error) {
4141
// IMPORTANT: the current stat needs to be the first thing in the description
4242
// because that's how we will parse it back off
4343
if comparisonStat == "" {
44-
return stateSuccess, fmt.Sprintf("%s - nothing to compare to", stat), nil
44+
return stateError, fmt.Sprintf("%s - nothing to compare to (stat is either new or being processed simultaneously)", stat), nil
4545
}
4646

4747
statNum, err := parse.ParseStatNumber(stat)

0 commit comments

Comments
 (0)