fix: 错误系统重构、消除静默吞错、update 修复、文档同步
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { TaskItem } from "../types.ts";
|
||||
import { CommandError } from "../cli/errors.ts";
|
||||
|
||||
export function parseTasks(content: string): TaskItem[] {
|
||||
const tasks: TaskItem[] = [];
|
||||
@@ -15,7 +16,7 @@ export function parseTasks(content: string): TaskItem[] {
|
||||
return tasks;
|
||||
}
|
||||
|
||||
export class TaskFormatError extends Error {
|
||||
export class TaskFormatError extends CommandError {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = this.constructor.name;
|
||||
|
||||
Reference in New Issue
Block a user