Skip to content

Commit

Permalink
Correct typo in error string (minio#2902)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwessels authored and harshavardhana committed Oct 11, 2016
1 parent fa8ea41 commit a635750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/signature-jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions cmd/signature-jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a635750

Please sign in to comment.