From bdc937782a660eaebf3942e8531b14f0d8f38c49 Mon Sep 17 00:00:00 2001 From: Brian Gonzalez Date: Sun, 8 Oct 2017 00:08:18 -0700 Subject: [PATCH] Better message about client_cycle_depth (#1171) * Better message about client_cycle_depth * Update decycle.js --- public/testem/decycle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/testem/decycle.js b/public/testem/decycle.js index be19a7f01..c51e941fa 100644 --- a/public/testem/decycle.js +++ b/public/testem/decycle.js @@ -49,7 +49,7 @@ function decycle(object, maxDepth) { maxDepth = maxDepth || 5; return (function derez(value, path, depth) { if (depth > maxDepth) { - return 'Max depth.'; + return 'Decycle max depth reached at ' + maxDepth + '. You may override the default by setting "client_decycle_depth" in your testem config.'; } // The derez recurses through the object, producing the deep copy.