Skip to content

Commit a4c1f2f

Browse files

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/driver/nodeserver_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (ns *NodeServer) findDevicePath(ctx context.Context, key linodevolumes.Lino
179179

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

185185
// If a device path is found, return it.

internal/driver/nodeserver_helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func TestNodeServer_findDevicePath(t *testing.T) {
225225
dUtils.EXPECT().VerifyDevicePath(gomock.Any()).Return("", nil)
226226
},
227227
wantDevicePath: "",
228-
wantErr: errInternal("Unable to find device path out of attempted paths: [some/path]"),
228+
wantErr: errNotFound("Unable to find device path out of attempted paths: [some/path]"),
229229
},
230230
{
231231
name: "Success",

0 commit comments

Comments
 (0)