Skip to content

Commit

Permalink
Output build failures to console
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Jan 13, 2025
1 parent c04d06a commit 9fb32f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Compile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 9fb32f8

Please sign in to comment.