提交 e2285892 编写于 作者: J Jason Park

Remove CompileError and RuntimeError classes

上级 d0eb54c8
......@@ -10,17 +10,9 @@ class ForbiddenError extends ClientError {
class UnauthorizedError extends ClientError {
}
class CompileError extends ClientError {
}
class RuntimeError extends ClientError {
}
export {
ClientError,
NotFoundError,
ForbiddenError,
UnauthorizedError,
CompileError,
RuntimeError,
};
......@@ -4,7 +4,6 @@ import uuid from 'uuid';
import path from 'path';
import { GitHubApi } from '/apis';
import { execute } from '/common/util';
import { CompileError, RuntimeError } from '/common/error';
const router = express.Router();
......
......@@ -5,10 +5,8 @@ import bodyParser from 'body-parser';
import * as controllers from '/controllers';
import {
ClientError,
CompileError,
ForbiddenError,
NotFoundError,
RuntimeError,
UnauthorizedError,
} from '/common/error';
......@@ -24,8 +22,6 @@ app.use((err, req, res, next) => {
[UnauthorizedError, 401],
[ForbiddenError, 403],
[NotFoundError, 404],
[CompileError, 422],
[RuntimeError, 422],
[ClientError, 400],
[Error, 500],
];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册