diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -170,7 +170,7 @@ CompassCompiler.prototype.updateCache = function (srcDir, destDir) {
     .then(function() {
       return destDir;
     }, function (err) {
-      msg = err.message || err;
+      var msg = err.message || err;
       if (options.ignoreErrors === false) {
         throw err;
       } else {
Fix jshint error where msg is not defined