diff --git a/replace.js b/replace.js
index <HASH>..<HASH> 100644
--- a/replace.js
+++ b/replace.js
@@ -138,7 +138,7 @@ function addRange($start, $end, depth, target) {
 
 function close(node, content) {
   if (!node.type.validContent(content, node.attrs))
-    throw new ReplaceError("Invalid content for node " + node.type.name)
+    throw new ReplaceError("Invalid content for node " + node.type.name + " " + content)
   return node.copy(content)
 }
Overhaul replace-fitting algorithm (again)

Issue #<I>