diff --git a/interactive/sync_errors_windows.go b/interactive/sync_errors_windows.go index 82311b8..92c4bb4 100644 --- a/interactive/sync_errors_windows.go +++ b/interactive/sync_errors_windows.go @@ -1,17 +1,20 @@ -//go:build windows - -package interactive +func isIgnorableSyncError(err error) bool { + if err == nil { + return false + } -import ( - "errors" - "syscall" -) + // Direct match + if errors.Is(err, windowsErrorInvalidHandle) { + return true + } -// ERROR_INVALID_HANDLE from Win32 API (winerror.h). -const windowsErrorInvalidHandle syscall.Errno = 6 + // Handle wrapped syscall errors + var errno syscall.Errno + if errors.As(err, &errno) { + return errno == windowsErrorInvalidHandle || + errno == syscall.EINVAL || + errno == syscall.ENOTSUP + } -func isIgnorableSyncError(err error) bool { - // Keep this list narrow and Windows-specific; unexpected sync errors should be surfaced. - // ERROR_INVALID_HANDLE is common when stdout/stderr are attached to non-syncable console handles. - return errors.Is(err, syscall.EINVAL) || errors.Is(err, syscall.ENOTSUP) || errors.Is(err, windowsErrorInvalidHandle) + return false } diff --git a/internal/staticserve/static/index.html b/internal/staticserve/static/index.html index b98d773..2829a3e 100644 --- a/internal/staticserve/static/index.html +++ b/internal/staticserve/static/index.html @@ -22,7 +22,7 @@ - + @@ -35,7 +35,12 @@ - - - + + + +