@@ -4239,9 +4239,9 @@ FEProblemBase::addPostprocessor(const std::string & pp_name,
42394239{
42404240 // Check for name collision
42414241 if (hasUserObject (name ))
4242- mooseError ("A UserObject with the name \" " ,
4243- name ,
4244- "\" already exists. You may not add a Postprocessor by the same name." );
4242+ mooseError ("A " ,
4243+ getUserObjectBase ( name ). typeAndName () ,
4244+ " already exists. You may not add a Postprocessor by the same name." );
42454245
42464246 addUserObject (pp_name , name , parameters );
42474247}
@@ -4253,9 +4253,9 @@ FEProblemBase::addVectorPostprocessor(const std::string & pp_name,
42534253{
42544254 // Check for name collision
42554255 if (hasUserObject (name ))
4256- mooseError ("A UserObject with the name \" " ,
4257- name ,
4258- "\" already exists. You may not add a VectorPostprocessor by the same name." );
4256+ mooseError ("A " ,
4257+ getUserObjectBase ( name ). typeAndName () ,
4258+ " already exists. You may not add a VectorPostprocessor by the same name." );
42594259
42604260 addUserObject (pp_name , name , parameters );
42614261}
@@ -4267,8 +4267,9 @@ FEProblemBase::addReporter(const std::string & type,
42674267{
42684268 // Check for name collision
42694269 if (hasUserObject (name ))
4270- mooseError (std ::string ("A UserObject with the name \"" ) + name +
4271- "\" already exists. You may not add a Reporter by the same name." );
4270+ mooseError ("A " ,
4271+ getUserObjectBase (name ).typeAndName (),
4272+ " already exists. You may not add a Reporter by the same name." );
42724273
42734274 addUserObject (type , name , parameters );
42744275}
0 commit comments