File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -504,15 +504,17 @@ object Build {
504
504
val args : Seq [String ] = spaceDelimited(" <arg>" ).parsed
505
505
val java : String = Process (" which" :: " java" :: Nil ).!!
506
506
val attList = (dependencyClasspath in Runtime ).value
507
- val _ = packageAll.value
507
+ val _ = packageAll.value
508
508
val scalaLib = attList
509
509
.map(_.data.getAbsolutePath)
510
510
.find(_.contains(" scala-library" ))
511
511
.toList.mkString(" :" )
512
512
513
- if (java == " " )
513
+ if (args.isEmpty) {
514
+ println(" Couldn't run `dotr` without args. Use `repl` to run the repl or add args to run the dotty application" )
515
+ } else if (java == " " ) {
514
516
println(" Couldn't find java executable on path, please install java to a default location" )
515
- else if (scalaLib == " " ) {
517
+ } else if (scalaLib == " " ) {
516
518
println(" Couldn't find scala-library on classpath, please run using script in bin dir instead" )
517
519
} else {
518
520
val dottyLib = packageAll.value(" dotty-library" )
You can’t perform that action at this time.
0 commit comments