code: function (path, callback) {
      fs.stat(path, function (err, stats) {
          failOn(err, "Error while reading the resolver path:", err);
          if (stats.isFile()) {
              TomahawkJS.loadAxe(path, _.partial(statResolver, callback));
          } else if (stats.isDirectory()) {
              // Load the resolver from a directory.
              TomahawkJS.loadDirectory(path, _.partial(startResolver, callback));
          } else {
              // Will be interesting what kind of fs type people will access here
              console.error("Unsupported FS item for a resolver bundle.");
              process.exit(1);
          }
      });
  }
docs: Load an AXE bundle and terminate on errors.