Skip to content

Commit a050d2b

Browse files
author
Cache Hamm
committed
Vanity error message for Deprecated path syntax throw
1 parent 9016027 commit a050d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/almanac.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class Almanac {
120120
console.error('Please convert your "path" properties to JsonPath syntax (ensure your path starts with "$")')
121121
console.error('Alternatively, if you wish to continue using old syntax (provided by selectn), you may "npm install selectn" as a direct dependency.')
122122
console.error('See https://github.com/CacheControl/json-rules-engine/blob/master/CHANGELOG.md#500--2019-10-27 for more information.')
123-
throw err
123+
throw new Error('json-rules-engine: Unmet peer dependency "selectn" required for use of deprecated ".path" syntax. please "npm install selectn" or convert to json-path syntax')
124124
}
125125
return factValuePromise
126126
.then(factValue => {

0 commit comments

Comments
 (0)