diff --git a/tests/t0000-config.sh b/tests/t0000-config.sh index bd3daf6..4275d90 100755 --- a/tests/t0000-config.sh +++ b/tests/t0000-config.sh @@ -10,7 +10,7 @@ to find it somewhere else. # Remove the pre-created todo.cfg to test behavior in its absence rm -f todo.cfg -echo "Fatal error: Cannot read configuration file $HOME/.todo/config" > expect +echo "Fatal Error: Cannot read configuration file $HOME/.todo/config" > expect test_expect_success 'no config file' ' todo.sh > output 2>&1 || test_cmp expect output ' diff --git a/todo.sh b/todo.sh index be23f15..8bbeea1 100755 --- a/todo.sh +++ b/todo.sh @@ -510,7 +510,7 @@ fi } # === SANITY CHECKS (thanks Karl!) === -[ -r "$TODOTXT_CFG_FILE" ] || die "Fatal error: Cannot read configuration file $TODOTXT_CFG_FILE" +[ -r "$TODOTXT_CFG_FILE" ] || die "Fatal Error: Cannot read configuration file $TODOTXT_CFG_FILE" . "$TODOTXT_CFG_FILE"