Skip to content

Commit

Permalink
Merge pull request #802 from trheyi/main
Browse files Browse the repository at this point in the history
Improve error message for missing app.yao file for better clarity
  • Loading branch information
trheyi authored Dec 3, 2024
2 parents a0885c9 + 68a97a4 commit 0bcb56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var startCmd = &cobra.Command{

// Is Yao App
if !setup.IsYaoApp(config.Conf.Root) {
fmt.Println(color.RedString(L("yao.app not found")))
fmt.Println(color.RedString("The app.yao file is missing"))
os.Exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion sui/core/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (r *Request) NewData() Data {
data["$query"] = r.Query
data["$param"] = r.Params
data["$cookie"] = cookies
data["$url"] = r.URL
data["$url"] = r.URL.Map()
data["$theme"] = r.Theme
data["$locale"] = r.Locale
data["$timezone"] = GetSystemTimezone()
Expand Down

0 comments on commit 0bcb56a

Please sign in to comment.