diff --git a/src/import/sb2import.js b/src/import/sb2import.js index 3b1ef0373..131c8f3ce 100644 --- a/src/import/sb2import.js +++ b/src/import/sb2import.js @@ -162,11 +162,11 @@ var parseScratchObject = function (object, runtime, topLevel) { */ var loadCostume = function (md5ext, costume, runtime) { if (!runtime.storage) { - log('No storage module present; cannot load costume asset: ', md5ext); + log.error('No storage module present; cannot load costume asset: ', md5ext); return null; } if (!runtime.renderer) { - log('No rendering module present; cannot load costume asset: ', md5ext); + log.error('No rendering module present; cannot load costume asset: ', md5ext); return null; } @@ -223,7 +223,7 @@ var loadCostume = function (md5ext, costume, runtime) { */ var loadSound = function (sound, runtime) { if (!runtime.storage) { - log('No storage module present; cannot load sound asset: ', sound.md5); + log.error('No storage module present; cannot load sound asset: ', sound.md5); return; } var idParts = sound.md5.split('.'); diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 4b3ae8cd7..81576c34c 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -163,7 +163,7 @@ VirtualMachine.prototype.loadProject = function (json) { */ VirtualMachine.prototype.downloadProjectId = function (id) { if (!this.runtime.storage) { - log('No storage module present; cannot load project: ', id); + log.error('No storage module present; cannot load project: ', id); return; } var vm = this;