Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 75f3af5

Browse files
committed
Routine Commit
1 parent 2ef15df commit 75f3af5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

flow.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ func (c *Context) populateCommonVars() {
8787
c.hasPopulated = true
8888
c.Bucket = make(Bucket)
8989
proto := "http://"
90-
if c.Store.Settings.GetBool("IS_HTTPS") {
90+
if c.Settings.IsDevelopment() {
91+
c.Add("IsDev", true)
92+
proto = "http://"
93+
} else {
94+
proto = "https://"
95+
}
96+
if c.Settings.GetBool("IS_HTTPS") {
9197
proto = "https://"
9298
}
9399
loggedInUser, _, _ := c.Padlock.LoggedInUser()
@@ -325,7 +331,11 @@ func (ctx *Context) errorOut(isText bool, status int, friendly string, errs ...e
325331

326332
if errs != nil && len(errs) > 0 {
327333
for _, err := range errs {
328-
errStr += err.Error() + "\n"
334+
if err != nil {
335+
errStr += err.Error() + "\n"
336+
} else {
337+
errStr += "No Error Specified \n"
338+
}
329339
}
330340
// notice that we're using 1, so it will actually log the where
331341
// the error happened, 0 = this function, we don't want that.

0 commit comments

Comments
 (0)