We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503a3dd commit c75290cCopy full SHA for c75290c
1 file changed
src/index.js
@@ -44,10 +44,10 @@ function format({
44
function prettify(text, formatOptions) {
45
try {
46
return prettier.format(text, formatOptions)
47
- } catch (e) {
+ } catch (error) {
48
// is this noisy? Try setting options.disableLog to false
49
- logError('prettier formatting failed', e.stack)
50
- throw e
+ logError('prettier formatting failed', error.stack)
+ throw error
51
}
52
53
@@ -72,7 +72,7 @@ function eslintFix(text, eslintConfig) {
72
} catch (error) {
73
74
logError('eslint fix failed', error.stack)
75
- throw error.stack
76
77
78
0 commit comments