Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/insurance.xml')
-rw-r--r--core/insurance.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/insurance.xml b/core/insurance.xml
index c77e959..8cd19e9 100644
--- a/core/insurance.xml
+++ b/core/insurance.xml
@@ -92,6 +92,20 @@
<!-- not yet used, but it will at least serve as code
documentation for the time being -->
<param name="@desc@" desc="Premium description" />
+ <unless name="@desc@">
+ <unless name="@generates@" eq="">
+ <error>
+ a description (@desc@) is required for
+ `<param-value name="@generates@" />'
+ </error>
+ </unless>
+ <if name="@generates@" eq="">
+ <error>
+ a description (@desc@) is required for
+ `<param-value name="@yields@" />'
+ </error>
+ </if>
+ </unless>
<rate-each class="@class@" no="@no@" yields="@yields@"