From a6357502c1b7428cc156772fe17f74cee9fa7f3d Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 11 Oct 2016 17:56:02 +0200 Subject: [PATCH] Correct typo in error string (#2902) --- cmd/signature-jwt.go | 2 +- cmd/signature-jwt_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/signature-jwt.go b/cmd/signature-jwt.go index df148bea4..9ec5153b9 100644 --- a/cmd/signature-jwt.go +++ b/cmd/signature-jwt.go @@ -44,7 +44,7 @@ const ( // newJWT - returns new JWT object. func newJWT(expiry time.Duration) (*JWT, error) { if serverConfig == nil { - return nil, errors.New("Server not initialzed") + return nil, errors.New("Server not initialized") } // Save access, secret keys. diff --git a/cmd/signature-jwt_test.go b/cmd/signature-jwt_test.go index f1ec61d30..ed30dcd47 100644 --- a/cmd/signature-jwt_test.go +++ b/cmd/signature-jwt_test.go @@ -72,11 +72,11 @@ func TestNewJWT(t *testing.T) { expectedErr error }{ // Test non-existent config directory. - {path.Join(path1, "non-existent-dir"), false, nil, fmt.Errorf("Server not initialzed")}, + {path.Join(path1, "non-existent-dir"), false, nil, fmt.Errorf("Server not initialized")}, // Test empty config directory. - {path2, false, nil, fmt.Errorf("Server not initialzed")}, + {path2, false, nil, fmt.Errorf("Server not initialized")}, // Test empty config file. - {path3, false, nil, fmt.Errorf("Server not initialzed")}, + {path3, false, nil, fmt.Errorf("Server not initialized")}, // Test initialized config file. {path4, true, nil, nil}, // Test to read already created config file.