From 992d2dee20814008a2d0e3d51340c923d6ba7497 Mon Sep 17 00:00:00 2001 From: Guillaume Giudicelli Date: Sat, 7 Oct 2023 14:59:04 -0600 Subject: [PATCH] Add type to transfer param error refs #25642 --- framework/include/utils/InputParameters.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/include/utils/InputParameters.h b/framework/include/utils/InputParameters.h index 76613a3d51f5..1431caf98f0f 100644 --- a/framework/include/utils/InputParameters.h +++ b/framework/include/utils/InputParameters.h @@ -1860,10 +1860,11 @@ InputParameters::transferParam(const InputParameters & source_params, { const auto name = source_params.checkForRename(std::string(name_in)); if (!source_params.have_parameter(name) && !source_params.hasCoupledValue(name)) - mooseError( - "The '", - name_in, - "' parameter could not be transferred because it does not exist in the source parameters"); + mooseError("The '", + name_in, + "' parameter could not be transferred because it does not exist with type '", + MooseUtils::prettyCppType(), + "' in the source parameters"); if (name != name_in) mooseWarning("The transferred parameter " + name_in + " is deprecated in favor of " + name + " in the source parameters. The new name should likely be used for the parameter "