Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cry in the log when secrets are missing
  • Loading branch information
zoffixznet committed Nov 14, 2015
1 parent f62ee8e commit b2050a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojo-app/lib/ModulesPerl6.pm
Expand Up @@ -20,6 +20,9 @@ sub startup {
my $secrets_file = -r SECRETS_FILE
? SECRETS_FILE : catfile qw/.. db-builder github-token/;

$self->app->log->info('Did not find suitable file to get secrets from')
unless -r $secrets_file;

$self->secrets([
-r $secrets_file ? slurp $secrets_file : 'Perl 6 is awesome!'
]);
Expand Down

0 comments on commit b2050a5

Please sign in to comment.