mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
refactor: 优化
This commit is contained in:
@@ -33,6 +33,15 @@ export class Executor {
|
||||
}
|
||||
|
||||
async run (options, args) {
|
||||
try {
|
||||
return this.doRun(options, args)
|
||||
} catch (e) {
|
||||
logger.error('任务执行出错:', e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
async doRun (options, args) {
|
||||
if (args != null) {
|
||||
_.merge(options.args, args)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user