Added configuration

This commit is contained in:
2024-05-02 22:18:48 +01:00
parent a5e08510f0
commit c4054b3a23
5 changed files with 94 additions and 7 deletions
+3 -1
View File
@@ -21,7 +21,9 @@ func (p *PrinterSocket) Write(data []byte) (int, error) {
written, err := conn.Write(data)
if err != nil {
fmt.Println("ERROR: ", err)
errStr := fmt.Sprintf("Error: %s", err)
return written, errors.New(errStr)
}
return written, err
}