Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/webvtt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

module Webvtt
# Your code goes here...
class MalformedError < StandardError; end
end

require 'webvtt/file'
Expand Down
2 changes: 1 addition & 1 deletion lib/webvtt/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(input_file)
def parse
remove_bom
if !webvtt_line?(file.lines.first)
raise Webvtt::MalformedError
raise Webvtt::MalformedError, "Invalid WebVTT file format"
end
in_header = true
collected_lines = []
Expand Down