diff --git a/modules/callbacks.inc b/modules/callbacks.inc
index 31ecda3..0efeb3f 100644
--- a/modules/callbacks.inc
+++ b/modules/callbacks.inc
@@ -639,6 +639,11 @@ function entity_metadata_no_hook_node_access($op, $node = NULL, $account = NULL)
         return node_access($op, $node->type, $account);
       }
       else {
+        if (is_string($node)) {
+          $stack = debug_backtrace();
+          $funcstack = array_map(function($frame){return "{$frame['function']}() at {$frame['file']}:{$frame['line']}";}, $stack);
+          watchdog('entity', 'String "%string" passed to entity_access() instead of node object. Stack data follows: <pre>@frame0</pre><pre>@funcstack</pre>', array('%string' => $node, '@frame0' => print_r($stack[0], TRUE), '@funcstack' => print_r($funcstack, TRUE)),  WATCHDOG_ERROR);
+        }
         throw new EntityMalformedException('Permission to create a node was requested but no node type was given.');
       }
     }
