Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/driver/nodeserver_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (ns *NodeServer) findDevicePath(ctx context.Context, key linodevolumes.Lino

// If no device path is found, return an error.
if devicePath == "" {
return "", errInternal("Unable to find device path out of attempted paths: %v", devicePaths)
return "", errNotFound("Unable to find device path out of attempted paths: %v", devicePaths)
}

// If a device path is found, return it.
Expand Down
2 changes: 1 addition & 1 deletion internal/driver/nodeserver_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func TestNodeServer_findDevicePath(t *testing.T) {
dUtils.EXPECT().VerifyDevicePath(gomock.Any()).Return("", nil)
},
wantDevicePath: "",
wantErr: errInternal("Unable to find device path out of attempted paths: [some/path]"),
wantErr: errNotFound("Unable to find device path out of attempted paths: [some/path]"),
},
{
name: "Success",
Expand Down
Loading