haydnv / tinychain

A next-gen database + SaaS framework for rapid development and integration of enterprise services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`TCError` should have constructor macros that accept a format string and arguments

haydnv opened this issue · comments

example:

// ...
bad_request!("expect a {} but found {}", ValueType::String, 123);

cf https://doc.rust-lang.org/std/fmt/struct.Arguments.html