mirror of
https://github.com/aunefyren/wrapperr
synced 2025-03-04 14:37:14 +00:00
Received
This commit is contained in:
parent
4f5786b087
commit
65ef1e70c4
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// Confirm username length
|
||||
if config_payload.DataType == "" {
|
||||
log.Println("Cannot set new config. Invalid data type recieved.")
|
||||
log.Println("Cannot set new config. Invalid data type received.")
|
||||
utilities.RespondDefaultError(w, r, errors.New("Data type specified is invalid."), 400)
|
||||
return
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ func ApiSetConfig(w http.ResponseWriter, r *http.Request) {
|
|||
time.Local = new_time
|
||||
|
||||
} else {
|
||||
log.Println("Cannot set new config. Invalid data type recieved. Type: " + config_payload.DataType)
|
||||
log.Println("Cannot set new config. Invalid data type received. Type: " + config_payload.DataType)
|
||||
utilities.RespondDefaultError(w, r, errors.New("Failed to save new Wrapperr confguration."), 400)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue