diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-06-01 16:07:58 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-06-02 16:57:07 +0200 |
commit | 3866ea02d4a5c8e4c69a5d8633a883e3733414b9 (patch) | |
tree | ac484fcf59a257ce526888a6b1d4cb8f61b4a49a /server/controllers/api | |
parent | 1cfbdd30d9913bfaa0c7e54f82e5b953646bb0d1 (diff) | |
download | PeerTube-3866ea02d4a5c8e4c69a5d8633a883e3733414b9.tar.gz PeerTube-3866ea02d4a5c8e4c69a5d8633a883e3733414b9.tar.zst PeerTube-3866ea02d4a5c8e4c69a5d8633a883e3733414b9.zip |
correct error codes and backward compat
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/videos/import.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 6ee109a8f..42ca59975 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -335,7 +335,7 @@ async function processTorrentOrAbortRequest (req: express.Request, res: express. | |||
335 | cleanUpReqFiles(req) | 335 | cleanUpReqFiles(req) |
336 | 336 | ||
337 | res.fail({ | 337 | res.fail({ |
338 | type: ServerErrorCode.INCORRECT_FILES_IN_TORRENT.toString(), | 338 | type: ServerErrorCode.INCORRECT_FILES_IN_TORRENT, |
339 | message: 'Torrents with only 1 file are supported.' | 339 | message: 'Torrents with only 1 file are supported.' |
340 | }) | 340 | }) |
341 | return undefined | 341 | return undefined |