From e556602da0006a32a377354141819828ac45d178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20M=C3=BCller?= Date: Sun, 30 Apr 2023 14:24:00 +0200 Subject: [PATCH] Update markd.rs modified error message to indicate file read error, not sql insert error. --- src/bin/markd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/markd.rs b/src/bin/markd.rs index 2c09f2f..fb744ee 100644 --- a/src/bin/markd.rs +++ b/src/bin/markd.rs @@ -16,7 +16,7 @@ async fn main() -> Result<(), sqlx::Error>{ file.read_to_string(&mut content).unwrap(); inserter = content; }, - Err(error) => {panic!("could not insert into postgres")}, + Err(error) => {panic!("could not read file")}, } let pool = PgPoolOptions::new()