【m】log完成
This commit is contained in:
@@ -73,7 +73,7 @@ export const createServer = (config: Options): express.Express => {
|
||||
// 重命名文件
|
||||
fs.rename(oldPath, newPath, (err) => {
|
||||
if (err) {
|
||||
console.error('Error renaming file:', err);
|
||||
log(LogLevel.error, 'Error renaming file:', err);
|
||||
return res.status(500).json({ success: false, message: '文件重命名失败' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user