Skip to content

Commit

Permalink
preserve last known valid config path
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Sep 17, 2015
1 parent e537af8 commit b56a33f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default class Scene {
this.initializing = false;
this.initialized = true;
this.last_valid_config_source = this.config_source;
this.last_valid_config_path = this.config_path;

if (this.render_loop !== false) {
this.setupRenderLoop();
Expand All @@ -175,7 +176,7 @@ export default class Scene {
if (this.last_valid_config_source) {
log.warn(message, error);
log.info(`Scene.load() reverting to last valid configuration`);
return this.load(this.last_valid_config_source);
return this.load(this.last_valid_config_source, this.last_valid_config_path);
}
log.error(message, error);
throw error;
Expand Down

0 comments on commit b56a33f

Please sign in to comment.