MCPcopy
hub / github.com/hardentools/hardentools / showErrorDialog

Function showErrorDialog

gui.go:231–246  ·  view source on GitHub ↗

showErrorDialog shows an error message.

(errorMessage string)

Source from the content-addressed store, hash-verified

229
230// showErrorDialog shows an error message.
231func showErrorDialog(errorMessage string) {
232 if mainWindow != nil {
233 ch := make(chan bool)
234 err := errors.New(errorMessage)
235 errorDialog := dialog.NewError(err, mainWindow)
236 errorDialog.SetOnClosed(func() {
237 ch <- true
238 })
239 errorDialog.Show()
240 <-ch
241 } else {
242 // no main windows - seem to be in command line mode.
243 Info.Println("Error: " + errorMessage)
244 }
245
246}
247
248// showInfoDialog shows an info message.
249func showInfoDialog(infoMessage string) {

Callers 3

markStatusFunction · 0.70
ShowFailureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected