     @response.body =
       code: 0
   catch err
-    console.error e
+    console.error err
     @response.status = 500
     @response.body =
       code: -1

    @response.body =
      code: 0
  catch err
    console.error e
    @response.status = 500
    @response.body =
      code: -1

    @response.body =
      code: 0
  catch err
    console.error err
    @response.status = 500
    @response.body =
      code: -1
