From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id 955A22D1176; Sat, 21 Nov 2026 21:33:43 +1100 (AEDT) Date: Sat, 21 Nov 2026 21:33:45 +1100 To: sup-commits@supmua.dev Subject: [sup.git] 02/03: sup-add: fix error message when given an invalid source URI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <179525722340.246766.1234561026886177183@bl2.djc.id.au> References: <179525722340.246766.1234561026886177183@bl2.djc.id.au> Thread-Index: AQAAEjRWupL1hZK2TYaNFzvjH7aj4g== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 776fd16c6bec7973bb7f378ed1dbae5ec227badb X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20261121103343.955A22D1176@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/776fd16c6bec7973bb7f378ed1dbae5ec227badb.html commit 776fd16c6bec7973bb7f378ed1dbae5ec227badb Author: Dan Callaghan AuthorDate: Sat Nov 21 11:00:11 2026 +1100 sup-add: fix error message when given an invalid source URI --- bin/sup-add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sup-add b/bin/sup-add index b7695e2f..04d119ce 100755 --- a/bin/sup-add +++ b/bin/sup-add @@ -100,7 +100,7 @@ begin Redwood::Maildir.new uri, !$opts[:unusual], $opts[:archive], $opts[:sync_back], nil, labels when /^mbox:/ Redwood::MBox.new uri, !$opts[:unusual], $opts[:archive], nil, labels - when nil + else Optimist::die "Sources must be specified with a maildir:// or mbox:// URI" end @cli.say "Adding #{source}..."