We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cda8311 + 4a0191c commit 9493448Copy full SHA for 9493448
src/utils/buildkit.ts
@@ -1,7 +1,7 @@
1
import {execa} from 'execa'
2
3
export async function du(): Promise<string | undefined> {
4
- const {exitCode, stdout} = await execa(
+ const {exitCode, stdout, stderr} = await execa(
5
'/usr/bin/buildctl',
6
[
7
'--tlsservername',
@@ -27,5 +27,9 @@ export async function du(): Promise<string | undefined> {
27
stdin: 'inherit',
28
},
29
)
30
- return exitCode == 0 ? stdout : undefined
+ if (exitCode !== 0) {
31
+ console.error('Unable to get disk usage', stderr)
32
+ return undefined
33
+ }
34
+ return stdout
35
}
0 commit comments