diff --git a/controllers/frame.js b/controllers/frame.js index 51f618394..48cde4ca2 100644 --- a/controllers/frame.js +++ b/controllers/frame.js @@ -82,7 +82,7 @@ const addFrameToObject = function (objectKey, frameKey, frame, callback) { const generateFrameOnObject = function (objectKey, frameType, relativeMatrix, callback) { let object = utilities.getObject(objects, objectKey); if (!object) { - callback(404, error); + callback(404, {failure: true, error: 'object with id ' + objectKey + ' does not exist'}); return; }