diff --git a/src/@dates/horzcat.m b/src/@dates/horzcat.m
index 108bf0fcb2e99f21a17b3ed5932a32382cbf1c95..80d57aec0765c0f67d7f6952ec50df0bd0c816b3 100644
--- a/src/@dates/horzcat.m
+++ b/src/@dates/horzcat.m
@@ -35,7 +35,7 @@ for i=2:nargin
             o.time = [o.time; p.time];
         end
     else
-        error('dates','All input arguments must have the same frequency!')
+        error('dates:horzcat','All input arguments must have the same frequency!')
     end
 end