mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: cleaner output
This commit is contained in:
1 parent
f3c1825c57
commit
51b2d1ce86
1 file changed
+3
-3
@@ -61,8 +61,8 @@ for (const root of ROOTS) {
|
||||
|
||||
await writeFile("temp/protoc.txt", args);
|
||||
execFile("protoc", ["@temp/protoc.txt"], (error, stdout, stderr) => {
|
||||
if (error) return console.error(`error: ${error.message}`);
|
||||
if (stderr) return console.error(`stderr: ${stderr}`);
|
||||
console.log(`stdout: ${stdout}`);
|
||||
if (error) throw new Error(error.message);
|
||||
if (stderr) console.error(stderr);
|
||||
if (stdout) console.log(stdout);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user