diff options
author | Andreas Rogge <andreas.rogge@bareos.com> | 2022-11-02 11:55:50 +0300 |
---|---|---|
committer | Andreas Rogge <andreas.rogge@bareos.com> | 2022-11-07 19:40:28 +0300 |
commit | 4f18cc6f46c4bf5172c45490fa752b20329d414b (patch) | |
tree | ee784be3ac373797711aa820614c4a6bfed9d9ad | |
parent | 8208f2ad40a3f34317fda7bdedfd998fa89d6752 (diff) |
stored: improve texts for Device Types
-rw-r--r-- | core/src/stored/dev.cc | 2 | ||||
-rw-r--r-- | core/src/stored/stored_conf.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/stored/dev.cc b/core/src/stored/dev.cc index a5d0e25a3..f5374c1ca 100644 --- a/core/src/stored/dev.cc +++ b/core/src/stored/dev.cc @@ -124,7 +124,7 @@ Device* FactoryCreateDevice(JobControlRecord* jcr, if (!ImplementationFactory<Device>::IsRegistered( device_resource->device_type)) { - Jmsg2(jcr, M_ERROR, 0, _("%s has an unknown device type %s\n"), + Jmsg2(jcr, M_ERROR, 0, _("%s has an unsupported Device Type %s\n"), device_resource->archive_device_string, device_resource->device_type.c_str()); return nullptr; diff --git a/core/src/stored/stored_conf.cc b/core/src/stored/stored_conf.cc index ed9bc7ce5..6ef9e1d40 100644 --- a/core/src/stored/stored_conf.cc +++ b/core/src/stored/stored_conf.cc @@ -536,8 +536,8 @@ static void GuessMissingDeviceTypes(ConfigurationParser& my_config) d->device_type = DeviceType::B_FIFO_DEV; } else if (!BitIsSet(CAP_REQMOUNT, d->cap_bits)) { Jmsg2(nullptr, M_ERROR_TERM, 0, - _("%s is an unknown device type. Must be tape or directory, " - "st_mode=%04o\n"), + "cannot deduce Device Type from '%s'. Must be tape or directory, " + "st_mode=%04o\n", d->archive_device_string, (statp.st_mode & ~S_IFMT)); return; } |