mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +00:00
feat: 🎸 优化 ResultDir 的报错信息, 更方便定位问题
This commit is contained in:
parent
c3d909aaf5
commit
965ef4a4ed
@ -15,7 +15,7 @@ export default class ResultDir implements IResultDir {
|
||||
if (this.dirs.findIndex(d => d.name === dir.name) < 0) {
|
||||
this.dirs.push(dir);
|
||||
} else {
|
||||
throw new CodeGeneratorError('Adding same directory to one directory');
|
||||
throw new CodeGeneratorError(`Adding same directory to one directory: ${dir.name} -> ${this.name}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ export default class ResultDir implements IResultDir {
|
||||
) {
|
||||
this.files.push(file);
|
||||
} else {
|
||||
throw new CodeGeneratorError('Adding same file to one directory');
|
||||
throw new CodeGeneratorError(`Adding same file to one directory: ${file.name} -> ${this.name}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user