tracks/perl6/bin/exercise-gen.pl6 in trackler-2.2.1.43 vs tracks/perl6/bin/exercise-gen.pl6 in trackler-2.2.1.44
- old
+ new
@@ -4,10 +4,14 @@
use YAMLish;
my $base-dir = $?FILE.IO.resolve.parent.parent;
my @exercises;
+if $base-dir.child('problem-specifications') !~~ :d {
+ warn 'problem-specifications directory not found; some exercises may generate incorrectly.';
+}
+
if @*ARGS {
if @*ARGS[0] eq '--all' {
push @exercises, .basename for $base-dir.child('exercises').dir;
} else {
@exercises = @*ARGS;
@@ -57,6 +61,6 @@
$file.chmod(0o755) if $template ~~ 'test';
}
}
if @dir-not-found {warn 'exercise directory does not exist for: ' ~ join ' ', @dir-not-found}
-if @yaml-not-found {warn 'example.yaml not found for: ' ~ join ' ', @yaml-not-found}
+if @yaml-not-found {note 'example.yaml not found for: ' ~ join ' ', @yaml-not-found}