summaryrefslogtreecommitdiffstats
path: root/lib/backbone/file.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/backbone/file.js')
-rw-r--r--lib/backbone/file.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/backbone/file.js b/lib/backbone/file.js
index 6c46d5e..209e261 100644
--- a/lib/backbone/file.js
+++ b/lib/backbone/file.js
@@ -21,6 +21,11 @@ BackboneFile.prototype.parse = function() {
// To be implemented by each child
};
+// Handle case where file doesn't exists
+BackboneFile.prototype.parseNotFound = function() {
+
+};
+
// Return true if backbone file exists
BackboneFile.prototype.exists = function() {
return Boolean(this.path);
@@ -48,7 +53,7 @@ BackboneFile.prototype.load = function() {
return this.locate()
.then(function() {
- if (!that.path) return;
+ if (!that.path) return that.parseNotFound();
that.log.debug.ln(that.type, 'located at', that.path);