diff --git a/tools/clang-format.js b/tools/clang-format.js index 1aec1cf5d..3bf6f48e8 100644 --- a/tools/clang-format.js +++ b/tools/clang-format.js @@ -21,8 +21,8 @@ function main(args) { ...filesToCheck ], { encoding: 'utf-8' }); - if (result.error) { - console.error('Error running git-clang-format:', result.error); + if (result.stderr) { + console.error('Error running git-clang-format:', result.stderr); return 2; }