Navigation Menu

Skip to content

Commit

Permalink
more awesome error message when running a non-installed Rakudo outsid…
Browse files Browse the repository at this point in the history
…e of the build directory

masak++ for complaining, jnthn++ for telling me where to steal the code
(alpha's perl6.pirg)
  • Loading branch information
moritz committed Jun 30, 2010
1 parent 261eb2a commit aa015ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Perl6/Compiler.pir
Expand Up @@ -34,6 +34,16 @@ Perl6::Compiler - Perl6 compiler
.loadlib 'sys_ops'

.sub '' :anon :load :init
$P0 = get_class ['P6role']
unless null $P0 goto startup_ok
say "==SORRY=="
say "Unable to find Perl 6 low-level runtime files"
say " If you want to run Rakudo outside of the build directory,"
say " run 'make install' and use the installed perl6 binary"
exit 1


startup_ok:
load_bytecode 'P6Regex.pbc'

# Init Rakudo dynops.
Expand Down

0 comments on commit aa015ad

Please sign in to comment.