summaryrefslogtreecommitdiff
path: root/lib/pandoc.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 19:45:18 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 19:45:18 -0500
commitc31bcece72fad34389ae0f104fd4844b17472916 (patch)
tree498190a15012f9007efc56ae868c35810f01d040 /lib/pandoc.rb
parentf1b364abf455b3654580718972a77572ca29be02 (diff)
pandoc: better error messages
Diffstat (limited to 'lib/pandoc.rb')
-rw-r--r--lib/pandoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pandoc.rb b/lib/pandoc.rb
index f0bf3f6..8c51cb4 100644
--- a/lib/pandoc.rb
+++ b/lib/pandoc.rb
@@ -89,7 +89,7 @@ module Pandoc
when "Para"
js["c"].map{|c| js2sane(c)}.join()
else
- throw js["t"]
+ raise "Unexpected AST node type '#{js["t"]}'"
end
end
end