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

server出错时的细节处理 #15

Closed
SMbey0nd opened this issue Jan 1, 2015 · 1 comment
Closed

server出错时的细节处理 #15

SMbey0nd opened this issue Jan 1, 2015 · 1 comment

Comments

@SMbey0nd
Copy link

SMbey0nd commented Jan 1, 2015

目前遇到很多跟细节相关的问题:

比如server启动后,调试过程中突然发现某些js突然出现类似报错"require not defined",查看下发现是该文件没有按预期加载头部define部分,再向后排查,最终发现是server过程中的某一个output文件内容解析出错导致server出现error,从而后续的js都会受影响无法正常解析。而这个出错提示又非常不清晰。

建议如下:

  1. server过程中如果出现问题,同时可以考虑终止掉server服务(目前是还可以正常浏览但没有加载define头部,就会出现报错,经验少的同学还是挺难以排查问题的),这样给用户的提示比较明确。
  2. 出问题后,需要有明显的友好提示。例如页面上也可以考虑输出一些提示内容。控制台内的提示需要明显一些(标红或者黄色处理)。目前是白色,很不明显。
@sorrycc
Copy link
Member

sorrycc commented Jan 13, 2015

增加标红处理:

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