Sfoglia il codice sorgente

t.info: clarify 'dataset not found' error message (#1473)

Martin Landa 4 anni fa
parent
commit
7869fa6d36
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      temporal/t.info/t.info.py

+ 5 - 1
temporal/t.info/t.info.py

@@ -112,7 +112,11 @@ def main():
     dataset = tgis.dataset_factory(type_, id_)
     dataset = tgis.dataset_factory(type_, id_)
 
 
     if not dataset.is_in_db(dbif):
     if not dataset.is_in_db(dbif):
-        grass.fatal(_("Dataset <%s> not found in temporal database") % (id_))
+        grass.fatal(
+            _("Dataset <{n}> of type <{t}> not found in temporal database").format(
+                n=id_, t=type_
+            )
+        )
 
 
     dataset.select(dbif)
     dataset.select(dbif)