From 41a4ee9af8343dd64ed8c32c50a16ef3ed443d70 Mon Sep 17 00:00:00 2001 From: LTLA Date: Thu, 15 Feb 2024 15:08:11 -0800 Subject: [PATCH] Minor typofixes for error messages. --- latest.go | 2 +- usage.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/latest.go b/latest.go index f5b07ef..edb6f91 100644 --- a/latest.go +++ b/latest.go @@ -90,7 +90,7 @@ func refreshLatestHandler(reqpath string, globals *globalConfiguration) (*latest } if !isAuthorizedToAdmin(source_user, globals.Administrators) { - return nil, fmt.Errorf("user %q is not authorized to refreseh the latest version (%q)", source_user, reqpath) + return nil, fmt.Errorf("user %q is not authorized to refresh the latest version (%q)", source_user, reqpath) } incoming := struct { diff --git a/usage.go b/usage.go index c8c6e27..060561a 100644 --- a/usage.go +++ b/usage.go @@ -84,7 +84,7 @@ func refreshUsageHandler(reqpath string, globals *globalConfiguration) (*usageMe } if !isAuthorizedToAdmin(source_user, globals.Administrators) { - return nil, fmt.Errorf("user %q is not authorized to refreseh the latest version (%q)", source_user, reqpath) + return nil, fmt.Errorf("user %q is not authorized to refresh the latest version (%q)", source_user, reqpath) } incoming := struct {