爱意满满的作品展示区。
pd4d10

写了一个 friendly-error,让 Node.js 的报错信息更友好

  •  
  •   pd4d10 · Jan 18, 2017 · 1798 views
    This topic created in 3500 days ago, the information mentioned may be changed or developed.

    https://github.com/pd4d10/friendly-error

    需要访问 Google ,支持 HTTP(S) 和 SOCKS5 代理

    Demo

    3 replies    2017-01-20 14:23:31 +08:00
    jiangzhuo
        1
    jiangzhuo  
       Jan 18, 2017 via iPhone
    这个不错 要是能自动修改代码或者系统配置就更好了
    Antidictator
        2
    Antidictator  
       Jan 18, 2017 via Android
    厉害了
    zhuangtongfa
        3
    zhuangtongfa  
       Jan 20, 2017
    这不就和
    ```
    try{
    // do something
    }catch(e){
    window.location.href="http://stackoverflow.com/search?q="+e
    }
    ```
    异曲同工之妙了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1266 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 23:48 · PVG 07:48 · LAX 16:48 · JFK 19:48
    ♥ Do have faith in what you're doing.