diff --git a/pkg/js/js.go b/pkg/js/js.go index 1e1170279..daa4b2acb 100644 --- a/pkg/js/js.go +++ b/pkg/js/js.go @@ -110,7 +110,7 @@ func require(call otto.FunctionCall) otto.Value { } if err != nil { - throw(call.Otto, err.Error()) + throw(call.Otto, fmt.Sprintf("File %s: %s", filepath.Base(relFile), err.Error())) } // Pop back to the old directory.