shepmaster / snafu

Easily assign underlying errors into domain-specific errors while adding context
https://docs.rs/snafu/
Apache License 2.0
1.45k stars 61 forks source link

macro error should mention snafu #289

Closed rogpeppe closed 3 years ago

rogpeppe commented 3 years ago

If a Snafu derive has accidentally been left in an enum definition, the error: Only struct-like and unit enum variants are supported error can be confusing, because it points only to the offending variant, not to the Snafu derive, and the message doesn't mention snafu at all.

Please consider making that error a little more specific; say:

error: Snafu supports only struct-like and unit enum variants
shepmaster commented 3 years ago

Closed via #303