mirror of https://github.com/statping/statping
test fix
parent
8c0c4f4e5c
commit
b03bb66089
1
Makefile
1
Makefile
|
@ -224,6 +224,7 @@ clean:
|
|||
rm -rf utils/{logs,assets,plugins,statup.db,config.yml,.sass-cache,*.log}
|
||||
rm -rf dev/test/cypress/videos
|
||||
rm -f coverage.* sass
|
||||
rm -f source/rice-box.go
|
||||
find . -name "*.out" -type f -delete
|
||||
find . -name "*.cpu" -type f -delete
|
||||
find . -name "*.mem" -type f -delete
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
package notifiers
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/hunterlong/statup/core/notifier"
|
||||
"github.com/hunterlong/statup/types"
|
||||
"github.com/hunterlong/statup/utils"
|
||||
|
@ -89,6 +90,10 @@ func runCommand(app, cmd string) (string, string, error) {
|
|||
return "", "", err
|
||||
}
|
||||
|
||||
if errStdout != nil || errStderr != nil {
|
||||
return "", "", errors.New("failed to capture stdout or stderr")
|
||||
}
|
||||
|
||||
outStr, errStr := string(stdout), string(stderr)
|
||||
return outStr, errStr, err
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{{define "content"}}
|
||||
<div class="container col-md-7 col-sm-12 mt-md-5 bg-light">
|
||||
{{template "nav"}}
|
||||
{{if .}}
|
||||
<div class="col-12">
|
||||
<h3>Messages</h3>
|
||||
<table class="table table-striped">
|
||||
|
@ -29,11 +30,13 @@
|
|||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{{end}}
|
||||
<div class="col-12">
|
||||
<h3>Create Message</h3>
|
||||
|
||||
{{template "form_message" NewMessage}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{define "extra_css"}}
|
||||
|
|
Loading…
Reference in New Issue