broadcast error from RestartBrowser

This commit is contained in:
Bernard Xie 2022-11-21 10:51:46 -08:00
parent 233fc76e7f
commit 27b7a5a2a9
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -332,7 +332,7 @@ func (w *watcher) compileLoop(ctx context.Context) error {
if filepath.Ext(w.outputPath) == ".png" && !w.pw.Browser.IsConnected() {
newPW, err := w.pw.RestartBrowser()
if err != nil {
broadcastErr := fmt.Errorf("issue encountered with PNG exporter, stopping")
broadcastErr := fmt.Errorf("issue encountered with PNG exporter: %w", err)
w.ms.Log.Error.Print(broadcastErr)
w.broadcast(&compileResult{
Err: broadcastErr.Error(),