From 9fb32f8578c28e04b19ecc36f2b025fd0c64d1e3 Mon Sep 17 00:00:00 2001 From: zvecr Date: Mon, 13 Jan 2025 21:55:16 +0000 Subject: [PATCH] Output build failures to console --- src/components/Compile.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Compile.vue b/src/components/Compile.vue index 22975f5..b4cb29b 100644 --- a/src/components/Compile.vue +++ b/src/components/Compile.vue @@ -45,12 +45,16 @@ const firmwareURL = computed(() => { const { pause, resume } = useIntervalFn(async () => { const { data } = await useFetch(`https://api.qmk.fm/v1/compile/${jobID.value}`).get().json(); - if(data.value.status === 'finished') { + if(data.value.status === 'finished' && !data.value.is_failed) { firmwareName.value = data.value.result.firmware_filename; setTimeout(() => { download(); }); + } else if(data.value.status === 'finished' && data.value.is_failed) { + console.log(data.value.result.output); + + abort(); } }, 2500, {immediate: false})