We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6db3b4 commit 37ae0f2Copy full SHA for 37ae0f2
1 file changed
src/protozoa.gleam
@@ -68,14 +68,16 @@ fn parse_auto_mode(
68
Ok(#(input, output)) -> {
69
Ok(#(cmd, input, output, ["."]))
70
}
71
- Error(_) -> {
+ Error(error) -> {
72
case cmd {
73
Check -> {
74
// For check mode, we can proceed even without proto files
75
// This allows checking in projects that don't have proto files yet
76
Ok(#(cmd, ".", ".", ["."]))
77
78
- Generate -> snag.error("No gleam.toml found or no proto files detected")
+ Generate ->
79
+ Error(error)
80
+ |> snag.context("No gleam.toml found or no proto files detected")
81
82
83
0 commit comments