Authored by 郭成尧

try-catch

... ... @@ -20,6 +20,11 @@ module.exports = (limiter, policy) => {
try {
blacklist = JSON.parse(args[0]);
} catch (error) {
logger.error(error);
}
try {
whitelist = JSON.parse(args[1]);
} catch (error) {
logger.error(error);
... ...