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
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo $PATH
|
||||||
|
|
||||||
go-bindata web/... && go build -a -v -o ironsmith
|
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()
|
result, err := ec.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("%s", result)
|
return nil, fmt.Errorf("%s\n%s", err, result)
|
||||||
}
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
@ -163,10 +163,10 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Project</th>
|
<th>Project</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th>Last Release</th>
|
|
||||||
<th>Last Release File</th>
|
|
||||||
<th>Last Version</th>
|
<th>Last Version</th>
|
||||||
<th>Last Log</th>
|
<th>Last Log</th>
|
||||||
|
<th>Last Release</th>
|
||||||
|
<th>Last Release File</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -174,6 +174,10 @@
|
|||||||
<tr title="{{formatDate(.lastLog.when)}}">
|
<tr title="{{formatDate(.lastLog.when)}}">
|
||||||
<td><a href="/project/{{.id}}/">{{.name}}</a></td>
|
<td><a href="/project/{{.id}}/">{{.name}}</a></td>
|
||||||
<td>{{.status}}</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>
|
<td>
|
||||||
<a href="/project/{{.id}}/{{.releaseVersion}}">{{.releaseVersion}}</a>
|
<a href="/project/{{.id}}/{{.releaseVersion}}">{{.releaseVersion}}</a>
|
||||||
</td>
|
</td>
|
||||||
@ -184,10 +188,6 @@
|
|||||||
No release file available
|
No release file available
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</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>
|
</tr>
|
||||||
{{/projects}}
|
{{/projects}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user