Skip to content

Commit

Permalink
Update systray.go
Browse files Browse the repository at this point in the history
  • Loading branch information
conlan0 authored Apr 3, 2024
1 parent a1b6336 commit df94341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func SendConfigToNamedPipe(supportName string, config []SupportConfig) error {
var written uint32
err = windows.WriteFile(hPipe, dataBytes, &written, nil)
if err != nil {
return fmt.Println("failed to write to named pipe: %v", err)
return fmt.Errorf("failed to write to named pipe: %v", err)
}

fmt.Println("Data sent to named pipe successfully.")
Expand Down Expand Up @@ -291,4 +291,4 @@ func closeExistingSystray() {
}

fmt.Println("Message sent successfully.")
}
}

0 comments on commit df94341

Please sign in to comment.