Skip to content

Commit

Permalink
Simpler error messages in css
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Sep 26, 2024
1 parent f1165e0 commit 6a22ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async function updateStyle(absPath, webContent) {
css = await renderStylus(absPath, css, meta.vars);
} catch (err) {
log(`Failed to render ${absPath}:`, err);
css = `/* Stylus 编译失败: ${err} */`;
css = `/* Stylus 编译失败: ${err.name} (使用 Debug 模式查看终端输出来获得更多信息) */`;
meta.name += " (编译失败)";
}
}
Expand Down

0 comments on commit 6a22ce3

Please sign in to comment.