this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add output if search couldnt be found

nnuuvv 761e2f9f 1b3fd026

+11 -3
+11 -3
src/condition_overload.gleam
··· 34 34 }) 35 35 }), 36 36 ) 37 - |> promise.map(list.take(_, 4)) 38 - // print values 39 - |> promise.map(list.map(_, fn(x) { io.println(format_row(x)) })) 37 + |> promise.map(fn(rows) { 38 + case list.length(rows) { 39 + 0 -> io.println("\"" <> search <> "\" could not be found") 40 + _ -> { 41 + rows 42 + |> list.take(4) 43 + |> list.map(fn(x) { io.println(format_row(x)) }) 44 + Nil 45 + } 46 + } 47 + }) 40 48 } 41 49 42 50 // format row into human readable string