From 229d36207c4b360d2b1ec39cee49f6b0e89b4744 Mon Sep 17 00:00:00 2001 From: stffabi Date: Wed, 27 Jul 2022 11:20:30 +0200 Subject: [PATCH] [v2] Fix formatting of some error messages (#1665) --- v2/internal/frontend/desktop/darwin/frontend.go | 2 +- v2/internal/frontend/desktop/linux/frontend.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/internal/frontend/desktop/darwin/frontend.go b/v2/internal/frontend/desktop/darwin/frontend.go index b497489d5..d9b0222b2 100644 --- a/v2/internal/frontend/desktop/darwin/frontend.go +++ b/v2/internal/frontend/desktop/darwin/frontend.go @@ -326,7 +326,7 @@ func (f *Frontend) processRequest(r *request) { req.Body.Close() } - return nil, fmt.Errorf("Expected host '%d' in request, but was '%s'", f.startURL.Host, req.URL.Host) + return nil, fmt.Errorf("Expected host '%s' in request, but was '%s'", f.startURL.Host, req.URL.Host) } return req, nil }, diff --git a/v2/internal/frontend/desktop/linux/frontend.go b/v2/internal/frontend/desktop/linux/frontend.go index a863fef88..3d558d660 100644 --- a/v2/internal/frontend/desktop/linux/frontend.go +++ b/v2/internal/frontend/desktop/linux/frontend.go @@ -355,7 +355,7 @@ func (f *Frontend) processRequest(request unsafe.Pointer) { req.Body.Close() } - return nil, fmt.Errorf("Expected host '%d' in request, but was '%s'", f.startURL.Host, req.URL.Host) + return nil, fmt.Errorf("Expected host '%s' in request, but was '%s'", f.startURL.Host, req.URL.Host) } return req, nil