diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 17923d90aba..907f4d198ec 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -111,7 +111,7 @@ class Chart { if (existingChart) { throw new Error( 'Canvas is already in use. Chart with ID \'' + existingChart.id + '\'' + - ' must be destroyed before the canvas can be reused.' + ' must be destroyed before the canvas with ID \'' + existingChart.canvas.id + '\' can be reused.' ); } diff --git a/test/specs/core.controller.tests.js b/test/specs/core.controller.tests.js index 4798f330753..90d31d06162 100644 --- a/test/specs/core.controller.tests.js +++ b/test/specs/core.controller.tests.js @@ -32,7 +32,7 @@ describe('Chart', function() { expect(createChart).toThrow(new Error( 'Canvas is already in use. ' + 'Chart with ID \'' + chart.id + '\'' + - ' must be destroyed before the canvas can be reused.' + ' must be destroyed before the canvas with ID \'' + chart.canvas.id + '\' can be reused.' )); chart.destroy();