Skip to content

Commit

Permalink
fix for error report
Browse files Browse the repository at this point in the history
  • Loading branch information
21h committed May 14, 2020
1 parent f3c8694 commit 41fa4d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/hetzner/hetzner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package hetzner

import (
"context"
"fmt"
"errors"
"os"
"strings"

Expand Down Expand Up @@ -41,7 +41,7 @@ type HetznerProvider struct {
func NewHetznerProvider(ctx context.Context, domainFilter endpoint.DomainFilter, dryRun bool) (*HetznerProvider, error) {
token, ok := os.LookupEnv("HETZNER_TOKEN")
if !ok {
return nil, fmt.Errorf("No token found")
return nil, errors.New("no environment variable HETZNER_TOKEN provided")
}

provider := &HetznerProvider{
Expand Down

0 comments on commit 41fa4d0

Please sign in to comment.