-
Notifications
You must be signed in to change notification settings - Fork 2
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
errオブジェクトの中にmessage以外も入れたい #54
Comments
https://github.com/plaidev/bolt-rpc/blob/master/src/server.coffee#L120 @otolab |
@tmonoi |
Errorオブジェクトを継承したオブジェクトを入れたいんですよね。 |
継承の状態は通らないよ。経路でJSONに変換されるから。 |
あーフロントに渡るのはJSONで良いのですが、 |
ああ、chainしたときに変換されてしまうのか。 minimum rpcで対応する手と... こっちで対応する手のどちらかかなぁ。 Line 245 in 6e268e2
後者がおすすめ。 |
err.codeとか
The text was updated successfully, but these errors were encountered: