Skip to content

Commit

Permalink
use cache error path instead of config path, change default cache loc…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
ACDR committed Oct 22, 2020
1 parent 3fdd87c commit 012ea78
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"title": "Cache Directory",
"type": "string",
"required": false,
"default": "../.node_persist"
"default": ".node_persist"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"license": "UNLICENSED",
"displayName": "Yamaha AVR",
"name": "homebridge-yamaha-avr",
"version": "2.0.3",
"version": "2.0.4",
"description": "homebridge-plugin - Add a Yamaha AVR as a HomeKit Audio Receiver with Power, Input, Volume & Remote Control",
"author": {
"name": "ACDR",
Expand Down
4 changes: 2 additions & 2 deletions src/accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class YamahaAVRAccessory {
} catch(err) {
reject(`
Could not access cache.
Please check your Homebridge instance has permission to access "${this.platform.config.cacheDirectory || '../.node-persist'}"
Please check your Homebridge instance has permission to access "${err.path}"
or set a different cache directory using the "cacheDirectory" config property.
`);
}
Expand Down Expand Up @@ -311,7 +311,7 @@ export class YamahaAVRAccessory {
reject(`
Could not write to cache.
Please check your Homebridge instance has permission to write to
"${this.platform.config.cacheDirectory || '../.node-persist'}"
"${err.path}"
or set a different cache directory using the "cacheDirectory" config property.
`);
}
Expand Down

0 comments on commit 012ea78

Please sign in to comment.