Skip to content

Commit 728c966

Browse files
committed
updating to use error_ to match the repo standards
1 parent 263c878 commit 728c966

File tree

1 file changed

+8
-8
lines changed
  • packages/cli/src/commands/autocomplete

1 file changed

+8
-8
lines changed

packages/cli/src/commands/autocomplete/create.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export default class Create extends AutocompleteBase {
8080
} catch (error: any) {
8181
debugLog(`Error creating completions for command ${c.id}`)
8282
debugLog(error.message)
83-
this.writeLogFile(error.message).catch(err => {
84-
debugLog(`Failed to write log file: ${err.message}`)
83+
this.writeLogFile(error.message).catch(error_ => {
84+
debugLog(`Failed to write log file: ${error_.message}`)
8585
})
8686
}
8787
})
@@ -99,8 +99,8 @@ export default class Create extends AutocompleteBase {
9999
} catch (error: any) {
100100
debugLog(`Error creating bash completion for command ${c.id}, moving on...`)
101101
debugLog(error.message)
102-
this.writeLogFile(error.message).catch(err => {
103-
debugLog(`Failed to write log file: ${err.message}`)
102+
this.writeLogFile(error.message).catch(error_ => {
103+
debugLog(`Failed to write log file: ${error_.message}`)
104104
})
105105
return ''
106106
}
@@ -120,8 +120,8 @@ export default class Create extends AutocompleteBase {
120120
} catch (error: any) {
121121
debugLog(`Error creating zsh autocomplete for command ${c.id}, moving on...`)
122122
debugLog(error.message)
123-
this.writeLogFile(error.message).catch(err => {
124-
debugLog(`Failed to write log file: ${err.message}`)
123+
this.writeLogFile(error.message).catch(error_ => {
124+
debugLog(`Failed to write log file: ${error_.message}`)
125125
})
126126
return ''
127127
}
@@ -137,8 +137,8 @@ export default class Create extends AutocompleteBase {
137137
} catch (error: any) {
138138
debugLog(`Error creating zsh autocomplete for command ${c.id}, moving on...`)
139139
debugLog(error.message)
140-
this.writeLogFile(error.message).catch(err => {
141-
debugLog(`Failed to write log file: ${err.message}`)
140+
this.writeLogFile(error.message).catch(error_ => {
141+
debugLog(`Failed to write log file: ${error_.message}`)
142142
})
143143
return ''
144144
}

0 commit comments

Comments
 (0)