fix(t231): expose freight preflight errors
This commit is contained in:
@@ -16,10 +16,11 @@
|
||||
<a class="button" href="/freight">返回列表</a>
|
||||
</div>
|
||||
{{if .Error}}<div class="notice danger" role="alert">{{.Error}}</div>{{end}}
|
||||
{{if eq .ErrorCode "OCR_SERVICE_INVALID"}}
|
||||
<dialog open aria-labelledby="ocr-service-error-title">
|
||||
<h2 id="ocr-service-error-title">OCR 服务无效</h2>
|
||||
{{if .ErrorCode}}
|
||||
<dialog open aria-labelledby="freight-import-error-title">
|
||||
<h2 id="freight-import-error-title">{{.ErrorTitle}}</h2>
|
||||
<p>{{.Error}}</p>
|
||||
<p class="secondary">{{.ErrorCode}}</p>
|
||||
<form method="dialog"><button class="button primary" type="submit" autofocus>关闭</button></form>
|
||||
</dialog>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user