MorseDistanceModulator.py: be more precise in an error message
authorAntonio Ospite <ao2@ao2.it>
Sun, 3 Jan 2016 17:46:21 +0000 (18:46 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 09:48:26 +0000 (10:48 +0100)
src/savemysugar/MorseDistanceModulator.py

index 417c5f9..1f78382 100755 (executable)
@@ -34,7 +34,7 @@ class SymbolTime(object):
         assert multiplier >= 0
         if (period_min == period_max) and (min_inter_symbol_distance == 0):
             raise ValueError("If (period_min == period_max) a non-zero",
-                             "inter-symbol distance MUST be specified")
+                             "min_inter_symbol_distance MUST be specified")
 
         symbol_distance = 2 * (period_max - period_min)
         if symbol_distance == 0: