From 61c4a8b635c18f2771191e2f42d17b2e10b8b43d Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 18 Feb 2015 12:07:36 -0800 Subject: [PATCH] Error messages show the proper name of the objects Just try to figure out why some binding wasn't working on my version and came out with this small change --- src/octoprint/static/js/app/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index 5f3c85f980..57a17a0742 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -542,10 +542,10 @@ $(function() { try { ko.applyBindings(viewModel, target); } catch (exc) { - console.log("Could not apply bindings for additional view model " + viewModel + ": " + exc.message); + console.log("Could not apply bindings for additional view model " + viewModel.constructor.name + ": " + exc.message); } } else { - console.log("Could not apply binding for view model " + viewModel + ", target does not exist"); + console.log("Could not apply binding for view model " + viewModel.constructor.name + ", target does not exist"); } });