Skip to content

Commit

Permalink
Fix error: Errorf format %w has arg name of wrong type string
Browse files Browse the repository at this point in the history
  • Loading branch information
alldroll committed Jul 17, 2020
1 parent b1c584f commit 0a5463a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/ram_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (rd *ramDirectory) CreateOutput(name string) (Output, error) {
// OpenInput returns a reader for the given name
func (rd *ramDirectory) OpenInput(name string) (Input, error) {
if _, ok := rd.files[name]; !ok {
return nil, fmt.Errorf("Failed to open input reader: there is no such input with the name %w", name)
return nil, fmt.Errorf("Failed to open input reader: there is no such input with the name %s", name)
}

data := rd.files[name].Bytes()
Expand Down

0 comments on commit 0a5463a

Please sign in to comment.