diff --git a/doc/src/errorcodes.rst b/doc/src/errorcodes.rst
index f659023d..d662d0c8 100644
--- a/doc/src/errorcodes.rst
+++ b/doc/src/errorcodes.rst
@@ -50,7 +50,7 @@ An example of the available constants defined in the module:
     '42P01'
 
 Constants representing all the error values defined by PostgreSQL versions
-between 8.1 and 9.3 are included in the module.
+between 8.1 and 9.4 are included in the module.
 
 
 .. autofunction:: lookup(code)
diff --git a/scripts/make_errorcodes.py b/scripts/make_errorcodes.py
index 8a8d54df..d6e25337 100755
--- a/scripts/make_errorcodes.py
+++ b/scripts/make_errorcodes.py
@@ -31,6 +31,7 @@ def main():
     filename = sys.argv[1]
 
     file_start = read_base_file(filename)
+    # If you add a version to the list fix the docs (errorcodes.rst, err.rst)
     classes, errors = fetch_errors(
         ['8.1', '8.2', '8.3', '8.4', '9.0', '9.1', '9.2', '9.3', '9.4'])