fix(cli): add one more error state

This commit is contained in:
hannahhoward 2021-05-27 11:24:08 -07:00
parent 9c2467b17c
commit 9e73e43272

View File

@ -1298,7 +1298,7 @@ var clientListRetrievalsCmd = &cli.Command{
func isTerminalError(status retrievalmarket.DealStatus) bool {
// should patch this in go-fil-markets but to solve the problem immediate and not have buggy output
return retrievalmarket.IsTerminalError(status) || status == retrievalmarket.DealStatusErrored
return retrievalmarket.IsTerminalError(status) || status == retrievalmarket.DealStatusErrored || status == retrievalmarket.DealStatusCancelled
}
func outputRetrievalDeals(ctx context.Context, out io.Writer, localDeals []lapi.RetrievalInfo, verbose bool, color bool, showFailed bool, completed bool) error {
var deals []api.RetrievalInfo