Added better error handling.
Moved main project list columns around
This commit is contained in:
parent
77f2f8c5aa
commit
9891301ca4
10
bindata.go
10
bindata.go
File diff suppressed because one or more lines are too long
2
build.sh
2
build.sh
@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo $PATH
|
||||
|
||||
go-bindata web/... && go build -a -v -o ironsmith
|
||||
|
2
exec.go
2
exec.go
@ -32,7 +32,7 @@ func runCmd(cmd, dir string, env []string) ([]byte, error) {
|
||||
|
||||
result, err := ec.CombinedOutput()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%s", result)
|
||||
return nil, fmt.Errorf("%s\n%s", err, result)
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
@ -163,10 +163,10 @@
|
||||
<tr>
|
||||
<th>Project</th>
|
||||
<th>Status</th>
|
||||
<th>Last Release</th>
|
||||
<th>Last Release File</th>
|
||||
<th>Last Version</th>
|
||||
<th>Last Log</th>
|
||||
<th>Last Release</th>
|
||||
<th>Last Release File</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -174,6 +174,10 @@
|
||||
<tr title="{{formatDate(.lastLog.when)}}">
|
||||
<td><a href="/project/{{.id}}/">{{.name}}</a></td>
|
||||
<td>{{.status}}</td>
|
||||
<td>
|
||||
<a href="/project/{{.id}}/{{.lastLog.version}}">{{.lastLog.version}}</a>
|
||||
</td>
|
||||
<td title="{{.lastLog.log}}">{{#if .lastLog.log}}{{.lastLog.log.substring(0,100)}}{{/if}}</td>
|
||||
<td>
|
||||
<a href="/project/{{.id}}/{{.releaseVersion}}">{{.releaseVersion}}</a>
|
||||
</td>
|
||||
@ -184,10 +188,6 @@
|
||||
No release file available
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/project/{{.id}}/{{.lastLog.version}}">{{.lastLog.version}}</a>
|
||||
</td>
|
||||
<td title="{{.lastLog.log}}">{{#if .lastLog.log}}{{.lastLog.log.substring(0,100)}}{{/if}}</td>
|
||||
</tr>
|
||||
{{/projects}}
|
||||
</tbody>
|
||||
|
Loading…
Reference in New Issue
Block a user