RadonMetrics/CodeMetricsCalculator.py

changeset 5
db25d1d5cc3a
parent 4
9ac53bf21182
child 6
13e9698a9981
--- a/RadonMetrics/CodeMetricsCalculator.py	Tue Sep 15 19:22:38 2015 +0200
+++ b/RadonMetrics/CodeMetricsCalculator.py	Wed Sep 16 18:51:27 2015 +0200
@@ -45,7 +45,8 @@
     if type_ == "raw":
         return __rawCodeMetrics(file, text)
     
-    # TODO: Return error indication
+    res = {"error": "Unknown metrics '{0}'.".format(type_)}
+    return (res, )
 
 
 def batchCodeMetrics(argumentsList, send, fx, cancelled):

eric ide

mercurial