From 49041fb83d5ab63a6933f34188bb56a8261d057e Mon Sep 17 00:00:00 2001 From: NotZippy Date: Tue, 2 May 2017 14:31:15 -0700 Subject: [PATCH] Changed build to print a warning if import-path build failed. --- revel/run.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/revel/run.go b/revel/run.go index a043e3b..0c319e6 100644 --- a/revel/run.go +++ b/revel/run.go @@ -89,7 +89,12 @@ func parseRunArgs(args []string) *RunArgs { // 1. revel run [import-path] // 2. revel run [port] // 3. revel run [run-mode] - if _, err := build.Import(args[0], "", build.FindOnly); err == nil { + _, err := build.Import(args[0], "", build.FindOnly); + if err!=nil { + revel.WARN.Printf("Unable to run using an import path, assuming import path is working directory %s %s",args[0],err.Error()) + } + println("Trying to build with",args[0], err) + if err == nil { // 1st arg is the import path inputArgs.ImportPath = args[0] } else if port, err := strconv.Atoi(args[0]); err == nil {