summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <github@bigly.dog>2024-03-22 15:19:01 -0700
committerroot <github@bigly.dog>2024-03-22 15:24:18 -0700
commit4327eb9ca94df75db85e817fbf8d76aa0b029f93 (patch)
treea151b48f45761cccd0befa1b0163ea570b410470
parent50b7c5dad27b17947f4094d5da15311dc611821a (diff)
makefile
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--Makefile5
-rw-r--r--src/main.rs5
4 files changed, 10 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 2324546..143e9a0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -467,7 +467,7 @@ dependencies = [
[[package]]
name = "sad"
-version = "0.4.24"
+version = "0.4.25"
dependencies = [
"aho-corasick",
"ansi_term",
diff --git a/Cargo.toml b/Cargo.toml
index 705a697..0adca1a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ authors = ["git@bigly.dog"]
description = "Space Age seD | https://github.com/ms-jpq/sad"
edition = "2021"
name = "sad"
-version = "0.4.24"
+version = "0.4.25"
[dependencies]
diff --git a/Makefile b/Makefile
index 92d9a7d..ab11925 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ SHELL := bash
.ONESHELL:
.SHELLFLAGS := --norc --noprofile -Eeuo pipefail -O dotglob -O nullglob -O failglob -O globstar -c
-.DEFAULT_GOAL := help
+.DEFAULT_GOAL := dev
.PHONY: clean clobber lint mypy clippy deps build release ci test
@@ -34,6 +34,9 @@ clobber: clean
mypy: .venv/$(VENV)/mypy
'$<' -- .
+dev:
+ cargo build
+
clippy:
cargo clippy --all-targets --all-features
diff --git a/src/main.rs b/src/main.rs
index f25e730..332004b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -74,7 +74,10 @@ async fn consume(stream: impl Stream<Item = Result<(), Die>> + Send + Unpin) ->
match out.next().await {
None | Some(Die::Eof) => break,
Some(Die::Interrupt) => return Err(Die::Interrupt),
- Some(e) => eprintln!("{}", Colour::Red.paint(format!("{e}"))),
+ Some(e) => {
+ eprintln!("{}", Colour::Red.paint(format!("{e}")));
+ return Err(e);
+ }
}
}
Ok(())