diff --git a/core/src/stored/dir_cmd.cc b/core/src/stored/dir_cmd.cc index 7a746a0a9f4..08d0be34d1f 100644 --- a/core/src/stored/dir_cmd.cc +++ b/core/src/stored/dir_cmd.cc @@ -933,6 +933,13 @@ static DeviceControlRecord* FindDevice(JobControlRecord* jcr, } Dmsg3(100, "Device %s drive wrong: want=%hd got=%hd skipping\n", devname.c_str(), drive, device_resource->dev->drive); + + if (changer->device_resources->current() + == changer->device_resources->size()) { + Jmsg(jcr, M_ERROR, 0, + _("Drive number \"%d\" for device \"%s\" not found.\n"), drive, + devname.c_str()); + } } break; /* we found it but could not open a device */ }