File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ import ViewToolbar from '@/components/cylc/ViewToolbar.vue'
198
198
import DeltasCallback from ' @/services/callbacks'
199
199
import { debounce } from ' lodash-es'
200
200
import CopyBtn from ' @/components/core/CopyBtn.vue'
201
+ import { Alert } from ' @/model/Alert.model'
201
202
import { getJobLogFileFromState } from ' @/model/JobState.model'
202
203
203
204
/**
@@ -558,7 +559,7 @@ export default {
558
559
})
559
560
} catch (err) {
560
561
// the query failed
561
- console . warn (err)
562
+ this . handleLogFileListingErr (err)
562
563
this .handleNoLogFiles ()
563
564
return
564
565
}
@@ -576,6 +577,9 @@ export default {
576
577
this .fileDisabled = false
577
578
this .logFiles = logFiles
578
579
} else {
580
+ if (result .errors ? .length ) {
581
+ this .handleLogFileListingErr (result .errors [0 ].message )
582
+ }
579
583
this .handleNoLogFiles ()
580
584
}
581
585
},
@@ -603,6 +607,9 @@ export default {
603
607
this .fileDisabled = true
604
608
this .logFiles = []
605
609
},
610
+ handleLogFileListingErr (err ) {
611
+ this .$store .dispatch (' setAlert' , new Alert (err, ' error' ))
612
+ },
606
613
},
607
614
608
615
watch: {
You can’t perform that action at this time.
0 commit comments