fepper-utils
Advanced tools
Comparing version 1.3.7 to 1.3.8
14
index.js
@@ -169,3 +169,3 @@ 'use strict'; | ||
// eslint-disable-next-line max-len | ||
exports.error(`${('Fepper cannot find the directory in which to start working! You may need to submit it as a constructor argument!')} ` + | ||
exports.error(`${t('Fepper cannot find the directory in which to start working! You may need to submit it as a constructor argument!')} ` + | ||
t('Exiting!')); | ||
@@ -197,3 +197,3 @@ throw new Error('EINVAL'); | ||
exports.error(err); | ||
exports.error(`${t('Missing or malformed')} pref.yml! ${t('Exiting!')}`); | ||
exports.error(`${t('Missing or malformed %s')}! ${t('Exiting!')}`, 'pref.yml'); | ||
@@ -212,3 +212,3 @@ return; | ||
exports.error(err); | ||
exports.error(`${t('Missing or malformed')} excludes/pref.yml! ${t('Exiting!')}`); | ||
exports.error(`${t('Missing or malformed %s')}! ${t('Exiting!')}`, 'excludes/pref.yml'); | ||
@@ -558,3 +558,3 @@ return; | ||
exports.error(`${ext} ${t('extension contains invalid characters!')}`); | ||
exports.error(`${t('%s extension contains invalid characters!')}`, ext); | ||
} | ||
@@ -638,7 +638,9 @@ | ||
if (!uiObj || !uiObj.paths || !uiObj.paths.source) { | ||
throw `${t('Missing or malformed')} paths.source!`; | ||
exports.error(`${t('Missing or malformed %s')}!`, 'paths.source'); | ||
throw new Error('ENOENT'); | ||
} | ||
if (!uiObj.paths.public) { | ||
throw `${t('Missing or malformed')} paths.public!`; | ||
exports.error(`${t('Missing or malformed %s')}!`, 'paths.public'); | ||
throw new Error('ENOENT'); | ||
} | ||
@@ -645,0 +647,0 @@ |
{ | ||
"name": "fepper-utils", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "Fepper utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
43240
721