diff options
-rw-r--r-- | lib/notice_store.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/notice_store.rb b/lib/notice_store.rb index 098c25e..379ab2a 100644 --- a/lib/notice_store.rb +++ b/lib/notice_store.rb @@ -19,8 +19,8 @@ class NoticeStore Dir.glob('data/notices/*.txt') do |file| begin @notices << Notice.from_file(file) - rescue ArgumentError - $stderr.puts 'Invalid notice: %s' % file + rescue => e + $stderr.puts 'Invalid notice (%s): %s' % [e.message, file] end end |