From 11f9e0dd68ea11c0bb16815c58bc33077701ed92 Mon Sep 17 00:00:00 2001 From: Menci Date: Tue, 29 Nov 2016 17:36:45 +0800 Subject: [PATCH] Fix wrong var name --- modules/problem.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/problem.js b/modules/problem.js index ba58fdd..8dad1b7 100644 --- a/modules/problem.js +++ b/modules/problem.js @@ -151,9 +151,9 @@ app.get('/problem/:id/upload', async (req, res) => { problem: problem }); } catch (e) { - syzoj.log(err); + syzoj.log(e); res.render('error', { - err: err + err: e }); } }); @@ -254,9 +254,9 @@ app.get('/problem/:id/download', async (req, res) => { res.download(problem.testdata.getPath(), `testdata_${id}.zip`); } catch (e) { - syzoj.log(err); + syzoj.log(e); res.render('error', { - err: err + err: e }); } });