Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme 的一个 bug #29

Closed
sofish opened this issue Mar 9, 2014 · 5 comments
Closed

theme 的一个 bug #29

sofish opened this issue Mar 9, 2014 · 5 comments

Comments

@sofish
Copy link
Contributor

sofish commented Mar 9, 2014

[Error: template not found]
Error: template not found
    at /candy/node_modules/theme/node_modules/pkghub-render/libs/render.js:33:29
    at Hub.find (/candy/node_modules/theme/node_modules/pkghub/libs/pkghub.js:70:16)
    at Hub.load (/candy/node_modules/theme/node_modules/pkghub/libs/pkghub.js:96:44)
    at module.exports (/candy/node_modules/theme/node_modules/pkghub-render/libs/render.js:16:16)
    at Theme.render (/candy/node_modules/theme/libs/theme.js:90:12)
    at /candy/routes/home.js:8:19
    at Promise.<anonymous> (/candy/ctrlers/thread.js:56:13)
    at Promise.<anonymous> (/candy/node_modules/express-scaffold/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
    at Promise.EventEmitter.emit (events.js:95:17)
    at Promise.emit (/candy/node_modules/express-scaffold/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
@guo-yu
Copy link
Owner

guo-yu commented Mar 9, 2014

在渲染哪个页面的时候出现的?

@guo-yu
Copy link
Owner

guo-yu commented Mar 9, 2014

是这样的,这个提示是固定的,所以只要渲染页面这个 try 逻辑里出了问题,客户端都会返回这个。具体错误可以在 common error 里查找到

@sofish
Copy link
Contributor Author

sofish commented Mar 10, 2014

就比较奇怪,从线上把数据库弄到本地,然后运行一下就 500 了,报这个错。

@guo-yu
Copy link
Owner

guo-yu commented Mar 10, 2014

这个要看具体错误了~ 在控制台看一看,前端不会暴露出来。回头我把 theme render 中这一段逻辑 catch 到的错误暴露给路由就可以在前端看到了

@guo-yu
Copy link
Owner

guo-yu commented May 20, 2014

theme 模块变动较大,这个 issue 先关了,0.2 发布的时候再升级下哈~

@guo-yu guo-yu closed this as completed May 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants