Added better error handling.

Moved main project list columns around
This commit is contained in:
Tim Shannon 2016-04-22 20:39:06 +00:00
parent 77f2f8c5aa
commit 9891301ca4
4 changed files with 14 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,5 @@
#!/bin/bash
echo $PATH
go-bindata web/... && go build -a -v -o ironsmith

View File

@ -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
}

View File

@ -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>