horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

add macro to help write error message

Open jiacai2050 opened this issue 3 years ago • 2 comments

        #[snafu(display(
            "Failed to build influxql plan with no cause, msg:{}.\nBacktrace:\n{}",
            msg,
            backtrace
        ))]
        BuildPlanNoCause { msg: String, backtrace: Backtrace },

Add a display_backtrace macro to simplify error message, something like:

display_backtrace!("Failed to build influxql plan with no cause, msg:{}.", msg)

It will rewrite to line above.

Originally posted by @jiacai2050 in https://github.com/CeresDB/ceresdb/pull/745#discussion_r1138301614

jiacai2050 avatar Mar 16 '23 09:03 jiacai2050

Hi, is this issue available?if so, can I try on this?

yuhaoran1214 avatar Jan 31 '24 02:01 yuhaoran1214

Thanks, assigned.

jiacai2050 avatar Jan 31 '24 05:01 jiacai2050

@Apricity001 Any progress? It has been quiet for a while.

jiacai2050 avatar Mar 12 '24 09:03 jiacai2050

Sorry, I'm a little busy recently,I want to give up it.

yuhaoran1214 avatar Mar 12 '24 09:03 yuhaoran1214

Thanks for response, unassigned.

jiacai2050 avatar Mar 12 '24 10:03 jiacai2050

Not need any more, see #1513

jiacai2050 avatar May 09 '24 14:05 jiacai2050