Skip to content

Commit dfd9d97

Browse files
committed
add message to run pub
1 parent 4302037 commit dfd9d97

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/dartdoc.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ class DartDoc {
123123
"\nDocumented ${libraries.length} librar${libraries.length == 1 ? 'y' : 'ies'} "
124124
"in ${seconds.toStringAsFixed(1)} seconds.");
125125

126+
if (libraries.isEmpty) {
127+
print(
128+
"\ndartdoc could not find any libraries to document. Run `pub get` and try again.");
129+
}
130+
126131
return new DartDocResults(packageMeta, package, outputDir);
127132
}
128133

0 commit comments

Comments
 (0)