Skip to content

Commit

Permalink
Print a message pointing to the online playground if compiled without…
Browse files Browse the repository at this point in the history
… it (#9622)

* Print a message pointing to the online playground if compiled without it

* Use more precise message when playground is not compiled in

This way, is more clear, that the playground and the online page
are not the same tools.
  • Loading branch information
deiv committed Jul 30, 2020
1 parent 8de7f2d commit 4847a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/crystal/command.cr
Expand Up @@ -77,6 +77,7 @@ class Crystal::Command
options.shift
{% if flag?(:without_playground) %}
puts "Crystal was compiled without playground support"
puts "Try the online code evaluation and sharing tool at https://play.crystal-lang.org"
exit 1
{% else %}
playground
Expand Down

0 comments on commit 4847a14

Please sign in to comment.