From 3fee2af8bbc83237a2cfcfbe61a4c43da58a7705 Mon Sep 17 00:00:00 2001 From: imago Date: Sun, 18 Aug 2024 20:33:25 +0300 Subject: [PATCH] Cleaning --- internal/wsinject/wsinject.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/wsinject/wsinject.go b/internal/wsinject/wsinject.go index d89f2e2..bda3ff9 100644 --- a/internal/wsinject/wsinject.go +++ b/internal/wsinject/wsinject.go @@ -61,6 +61,7 @@ func (fs *Fileserver) mirrorFile(origPath string) error { } injected, injectedBytes, err := injectWebsocketScript(fileB) if err != nil { + return fmt.Errorf("failed to inject websocket script: %v", err) } if injected { ancli.PrintfNotice("injected delta-streamer script loading tag in: '%v'", origPath)