Skip to content

Make semaphore less panicly#551

Merged
strangeman merged 1 commit intosemaphoreui:developfrom
UnitedTraders:549-dont-panic
Aug 9, 2018
Merged

Make semaphore less panicly#551
strangeman merged 1 commit intosemaphoreui:developfrom
UnitedTraders:549-dont-panic

Conversation

@strangeman
Copy link
Copy Markdown
Contributor

@twhiston please take a look at my solution for panic reducing. Is it ok?

Related to #549 and #462

@strangeman strangeman requested a review from twhiston June 14, 2018 06:24
@strangeman strangeman merged commit 8e18b9d into semaphoreui:develop Aug 9, 2018
@strangeman strangeman deleted the 549-dont-panic branch August 9, 2018 08:58
Comment thread api/tasks/http.go
if err := db.Mysql.Insert(&taskObj); err != nil {
panic(err)
util.LogErrorWithFields(err, log.Fields{"error": "Bad request. Cannot create new task"})
w.WriteHeader(http.StatusBadRequest)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like more of a server issue -- ie StatusInternalServerError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants