Skip to content

Commit

Permalink
Fix errormsg spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
matzf authored and Lukas Vogel (Rebase PR Action) committed Oct 14, 2020
1 parent 9f2d496 commit bda0414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/pkg/sciond/fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ func (f *fetcher) GetPaths(ctx context.Context, src, dst addr.IA,

// Check context
if _, ok := ctx.Deadline(); !ok {
return nil, serrors.New("Context must have deadline set")
return nil, serrors.New("context must have deadline set")
}
local := f.pather.TopoProvider.Get().IA()
// Check source
if !src.IsZero() && !src.Equal(local) {
return nil, serrors.New("Bad source AS", "src", src)
return nil, serrors.New("bad source AS", "src", src)
}
return f.pather.GetPaths(ctx, dst, refresh)
}
Expand Down

0 comments on commit bda0414

Please sign in to comment.