# HG changeset patch
# User Andrey Novoseltsev
# Date 1328770680 25200
# Node ID 692f370704e26ed4cc2c89aae0f866a93efc2f1f
# Parent c053db755451fccf9c3b3d3098ef33a7e2d376d4
Fix a typo in the error message of the Fan constructor.
diff --git a/sage/geometry/fan.py b/sage/geometry/fan.py
--- a/sage/geometry/fan.py
+++ b/sage/geometry/fan.py
@@ -346,7 +346,7 @@
Traceback (most recent call last):
...
ValueError: you have provided 3 cones, but only 2 of them are maximal!
- Use discard_faces=False if you indeed need to construct a fan from
+ Use discard_faces=True if you indeed need to construct a fan from
these cones.
Oops! There was a typo and ``cone2`` was listed twice as a generating cone
@@ -519,7 +519,7 @@
cones = generating_cones
else:
raise ValueError("you have provided %d cones, but only %d "
- "of them are maximal! Use discard_faces=False if you "
+ "of them are maximal! Use discard_faces=True if you "
"indeed need to construct a fan from these cones." %
(len(cones), len(generating_cones)))
elif discard_faces:
diff --git a/sage/schemes/generic/fano_toric_variety.py b/sage/schemes/generic/fano_toric_variety.py
--- a/sage/schemes/generic/fano_toric_variety.py
+++ b/sage/schemes/generic/fano_toric_variety.py
@@ -429,7 +429,7 @@
Traceback (most recent call last):
...
ValueError: you have provided 5 cones, but only 4 of them are maximal!
- Use discard_faces=False if you indeed need to construct a fan from
+ Use discard_faces=True if you indeed need to construct a fan from
these cones.
These charts are technically correct, they just happened to list one of