This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 567d872d Report error if no base found
567d872d is described below
commit 567d872df9c9b96a2f149a860e22bdf1115b753e
Author: Sebb <[email protected]>
AuthorDate: Sun Dec 31 13:39:20 2023 +0000
Report error if no base found
---
www/board/agenda/views/actions/potential-actions.json.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/board/agenda/views/actions/potential-actions.json.rb
b/www/board/agenda/views/actions/potential-actions.json.rb
index 48e4a8ba..1b6d77c6 100644
--- a/www/board/agenda/views/actions/potential-actions.json.rb
+++ b/www/board/agenda/views/actions/potential-actions.json.rb
@@ -11,6 +11,8 @@ else
select {|file| file <= today}.sort.last
end
+raise IOError.new("No previous agenda found") unless base
+
parsed = ASF::Board::Agenda.parse(IO.read(base), true)
actions = parsed.find {|item| item['title'] == 'Action Items'}['actions']