Changed endpoints and db queries, chart now shows suggested mins and maxes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/gorilla/mux"
|
||||
@@ -91,7 +92,7 @@ func saveSnapshot(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func internalErrorOnErr(err error, w http.ResponseWriter, r *http.Request) bool {
|
||||
if err != nil {
|
||||
if errors.Unwrap(err) != nil {
|
||||
errorMessage := "Internal Server Error!"
|
||||
if DEBUG {
|
||||
errorMessage += fmt.Sprintf(" Happened during %s request for pattern '%s': %s",
|
||||
|
||||
Reference in New Issue
Block a user