Skip to content

Commit

Permalink
Better message about client_cycle_depth (#1171)
Browse files Browse the repository at this point in the history
* Better message about client_cycle_depth

* Update decycle.js
  • Loading branch information
briangonzalez authored and johanneswuerbach committed Oct 8, 2017
1 parent 0a729b2 commit bdc9377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/testem/decycle.js
Expand Up @@ -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.
Expand Down

0 comments on commit bdc9377

Please sign in to comment.