totaljs / framework

Node.js framework
http://www.totaljs.com
Other
4.36k stars 450 forks source link

add problem string in res.$throw #556

Closed ckpiggy closed 7 years ago

ckpiggy commented 7 years ago

Add problem string in res.$throw base on #555 . I found we only send the problem message by controller.throw. Please consider to add problem message also in res.throw.

petersirka commented 7 years ago

Great, thank you! I need to update prepare_error because problem can be displayed in debug mode only. In release mode the problem is hidden because of security.