1
0
Fork 0

exit arango-dfdb if there are no collections

This commit is contained in:
Jan Steemann 2013-02-14 15:11:08 +01:00
parent ee73fce4dc
commit 494586af2b
1 changed files with 5 additions and 0 deletions

View File

@ -307,6 +307,11 @@ function main (argv) {
printf("%s\n", "/___,' \\__,_|\\__\\__,_|_| |_|_|\\___| /___,'\\_____/\\____/ ");
printf("\n");
if (collections.length == 0) {
printf("No collections available. Exiting\n");
return;
}
printf("Available collections:\n");
for (i = 0; i < collections.length; ++i) {