mirror of
https://github.com/discourse/discourse.git
synced 2025-09-09 12:21:04 +08:00
FIX: Inappropriate error message when you couldn't access a topic
This commit is contained in:
parent
83d2b59fc3
commit
5890dae64c
4 changed files with 27 additions and 1 deletions
|
@ -175,6 +175,14 @@ export default function() {
|
|||
return response(200, data.post);
|
||||
});
|
||||
|
||||
this.get('/t/403.json', () => {
|
||||
return response(403, {});
|
||||
});
|
||||
|
||||
this.get('/t/500.json', () => {
|
||||
return response(502, {});
|
||||
});
|
||||
|
||||
this.put('/t/:slug/:id', (request) => {
|
||||
const data = parsePostData(request.requestBody);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue