fixed format and import
package events
import (
+ "fmt"
+
"github.com/spf13/cobra"
"github.com/onflow/flow-cli/internal/command"
@@ -78,7 +80,7 @@ func get(
start = end - last
} else if start == 0 || end == 0 {
- return fmt.Errorf("please provide either both start and end for range or only last flag")
+ return nil, fmt.Errorf("please provide either both start and end for range or only last flag")
}
events, err := services.Events.Get(args, start, end, eventsFlags.Batch, eventsFlags.Workers)
