activescott / activescott/serverless-aws-static-file-handler

The 404 error page renders literal {errorText}

Đang mở
#135 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue help wanted
Ngôn ngữ chính
JavaScript
Star
51
Fork
14
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
4

Mô tả

### Expected behavior:
The 404 result presents the actual internal error text in development environments

### Actual behavior:
Literal `{errorText}` is rendered which is a bit less than useful for debugging purposes.

### Steps to fix the problem:
In `async responseAsError(errorText, statusCode)` replace
```

{{errorText}}

```
with
```

${errorText}

```
or similar.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.