Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Nov 7, 2018
1 parent 8c0c4f4 commit b03bb66
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions notifiers/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package notifiers

import (
"errors"
"github.com/hunterlong/statup/core/notifier"
"github.com/hunterlong/statup/types"
"github.com/hunterlong/statup/utils"
Expand Down Expand Up @@ -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
}
Expand Down
7 changes: 5 additions & 2 deletions source/tmpl/messages.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -29,11 +30,13 @@ <h3>Messages</h3>
{{end}}
</tbody>
</table>

</div>
{{end}}
<div class="col-12">
<h3>Create Message</h3>

{{template "form_message" NewMessage}}
</div>
</div>
</div>
{{end}}
{{define "extra_css"}}
Expand Down

0 comments on commit b03bb66

Please sign in to comment.