Skip to content

Commit cbec8ec

Browse files
committed
Update Env.js
1 parent d5f052a commit cbec8ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Env.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Env(name, opts) {
3939
const datPath = isCurDirDataFile ? curDirDataFilePath : rootDirDataFilePath
4040
try {
4141
return JSON.parse(this.fs.readFileSync(datPath))
42-
} catch {
42+
} catch (e) {
4343
return {}
4444
}
4545
} else return {}
@@ -113,7 +113,7 @@ function Env(name, opts) {
113113
this.lodash_set(objedval, paths, val)
114114
issuc = this.setval(JSON.stringify(objedval), objkey)
115115
console.log(`${objkey}: ${JSON.stringify(objedval)}`)
116-
} catch {
116+
} catch (e) {
117117
const objedval = {}
118118
this.lodash_set(objedval, paths, val)
119119
issuc = this.setval(JSON.stringify(objedval), objkey)

0 commit comments

Comments
 (0)