Skip to content

Commit

Permalink
Tell the user which file the setup token could not be written to
Browse files Browse the repository at this point in the history
fixes #7407
  • Loading branch information
Michael Friedrich authored and Johannes Meyer committed Oct 20, 2014
1 parent 7f453be commit 5b3c24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/clicommands/SetupCommand.php
Expand Up @@ -53,7 +53,7 @@ public function generateTokenAction()
$filepath = $this->app->getConfigDir() . '/setup.token';

if (false === @file_put_contents($filepath, $token)) {
$this->fail($this->translate('Cannot write setup token to disk.'));
$this->fail(sprintf($this->translate('Cannot write setup token "%s" to disk.'), $filepath));
}

if (false === @chmod($filepath, 0640)) {
Expand Down

0 comments on commit 5b3c24d

Please sign in to comment.