fix lineProcessingError() -- it wasn't returning a ctx so it was a noop.

This commit is contained in:
fiatjaf
2024-07-11 15:33:19 -03:00
parent 2ca6bb0940
commit 316d94166e
9 changed files with 23 additions and 23 deletions

View File

@@ -38,7 +38,7 @@ var fetch = &cli.Command{
prefix, value, err := nip19.Decode(code)
if err != nil {
lineProcessingError(ctx, "failed to decode: %s", err)
ctx = lineProcessingError(ctx, "failed to decode: %s", err)
continue
}
@@ -88,7 +88,7 @@ var fetch = &cli.Command{
}
if len(relays) == 0 {
lineProcessingError(ctx, "no relay hints found")
ctx = lineProcessingError(ctx, "no relay hints found")
continue
}