Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #308 from nat-ventura/nv/start-invalid-dir
Browse files Browse the repository at this point in the history
specifies missing directory for invalid directory error
  • Loading branch information
braydonf committed Dec 30, 2017
2 parents ef80353 + c594507 commit c8b616f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ exports._isValidSize = function(size) {
exports.validate = function(config) {
assert(this._isValidPayoutAddress(config.paymentAddress),
'Invalid payout address');
assert(this._isValidDirectory(config.storagePath), 'Invalid directory');
assert(this._isValidDirectory(config.storagePath), `Invalid directory: \
${config.storagePath} does not exist`);
assert(this._isValidSize(bytes.parse(config.storageAllocation)),
'Invalid storage size');
assert(this._isValidDirectory(config.storagePath),
Expand Down

0 comments on commit c8b616f

Please sign in to comment.