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

The 404 error page renders literal {errorText}

未关闭
#135 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug good first issue help wanted
主要语言
JavaScript
星标
51
派生
14
平均合并
1 天 8 小时
30 天内合并 PR
4

描述

### 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。