summaryrefslogtreecommitdiffstats
path: root/tests/hawd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hawd')
-rw-r--r--tests/hawd/modules/list.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/hawd/modules/list.cpp b/tests/hawd/modules/list.cpp
index 3310217..efb000b 100644
--- a/tests/hawd/modules/list.cpp
+++ b/tests/hawd/modules/list.cpp
@@ -34,8 +34,8 @@ List::List()
34 : Module() 34 : Module()
35{ 35{
36 Syntax top("list", &List::list); 36 Syntax top("list", &List::list);
37 //top.children << Syntax("create", &List::create);
38 setSyntax(top); 37 setSyntax(top);
38 setDescription(QObject::tr("Lists all dataset files or, when given one or more names"));
39} 39}
40 40
41bool List::list(const QStringList &commands, State &state) 41bool List::list(const QStringList &commands, State &state)
@@ -65,9 +65,8 @@ bool List::list(const QStringList &commands, State &state)
65 it.next(); 65 it.next();
66 std::cout << "\t\t" << it.value().typeString().toStdString() << ' ' << it.key().toStdString() << std::endl; 66 std::cout << "\t\t" << it.value().typeString().toStdString() << ' ' << it.key().toStdString() << std::endl;
67 } 67 }
68
69 } else { 68 } else {
70 std::cout << QObject::tr("Invalid or non-existent dataset definition at %1").arg(project.absoluteFilePath(file)).toStdString() << std::endl; 69 std::cout << QObject::tr("Problem with dataset %1. Check with 'check' command.").arg(file).toStdString() << std::endl;
71 } 70 }
72 } 71 }
73 } 72 }