Navigation Menu

Skip to content

Commit

Permalink
better Windows error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 30, 2015
1 parent 3318c59 commit 37304c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -37,7 +37,7 @@ sub run {
my ($self, $app) = @_;

# No Windows support
_exit('Hypnotoad not available for Windows.') if $^O eq 'MSWin32';
_exit('Hypnotoad is not available for Windows.') if $^O eq 'MSWin32';

# Remember executable and application for later
$ENV{HYPNOTOAD_EXE} ||= $0;
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Server/Prefork.pm
Expand Up @@ -66,7 +66,8 @@ sub run {
my $self = shift;

# No Windows support
say 'Preforking not available for Windows.' and exit 0 if $^O eq 'MSWin32';
say 'Preforking is not available for Windows.' and exit 0
if $^O eq 'MSWin32';

# Prepare lock file and event loop
$self->{lock_file} = $self->lock_file . ".$$";
Expand Down

0 comments on commit 37304c2

Please sign in to comment.