diff --git a/src/USER-YAFF/pair_lj_switch3_coulgauss_long.h b/src/USER-YAFF/pair_lj_switch3_coulgauss_long.h
index de6bc107f7e2f55d09f3dcc452da31b2f1975219..75686d55a2cb1932874eb65014ff4d2af4ff2287 100644
--- a/src/USER-YAFF/pair_lj_switch3_coulgauss_long.h
+++ b/src/USER-YAFF/pair_lj_switch3_coulgauss_long.h
@@ -75,7 +75,7 @@ E: Incorrect args for pair coefficients
 
 Self-explanatory.  Check the input script or data file.
 
-E: Pair style lj/cut/coul/long requires atom attribute q
+E: Pair style lj/switch3/coulgauss/long requires atom attribute q
 
 The atom style defined does not have this attribute.
 
diff --git a/src/USER-YAFF/pair_mm3_switch3_coulgauss_long.h b/src/USER-YAFF/pair_mm3_switch3_coulgauss_long.h
index 76016c40de786840e7604863edcbc9768fd44b6a..35ae6c7995c927a4dd540efb063f5af0ebb3e053 100644
--- a/src/USER-YAFF/pair_mm3_switch3_coulgauss_long.h
+++ b/src/USER-YAFF/pair_mm3_switch3_coulgauss_long.h
@@ -75,7 +75,7 @@ E: Incorrect args for pair coefficients
 
 Self-explanatory.  Check the input script or data file.
 
-E: Pair style lj/cut/coul/long requires atom attribute q
+E: Pair style mm3/switch3/coulgauss/long requires atom attribute q
 
 The atom style defined does not have this attribute.