--quiet hides the error message when a command fails
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 52/100
Línea de trabajo
The final error line is printed via printer.errorln in cmd/soroban-cli/src/cli.rs (around line 106), and the --quiet flag is defined in cmd/soroban-cli/src/commands/global.rs. Start by reading how the printer suppresses output under quiet mode, then decide how a failing command's error reaches stderr while progress lines stay hidden. Done when stellar -q tx sign with a bad key prints the error and still exits 1, and successful quiet runs and --output json behavior are unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What's wrong:
With -q / --quiet, a failing command exits 1 and prints nothing: no error on stderr and nothing on stdout. For example, with CLI 28.1.0:
$ stellar -q tx sign --sign-with-key nobody --network-passphrase "Test SDF Network ; September 2015" < tx.xdr
$ echo $?
1
Without -q the same command prints ❌ error: .... The flag's help says it means "Do not write logs to stderr including INFO" (v28.1.0 global.rs#L27-L29), but the final error line goes through the same quiet-aware printer as the progress lines (v28.1.0 cli.rs#L106, printer.errorln(format!("error: {e}"))). Before #1584 (September 2024, about contract init error handling) the error was always written with eprintln!; that PR moved it to the printer.
Impact:
-q is what scripts and agents use to drop the progress lines (for example LATCH passes --quiet on every call), so it's the mode where a readable failure matters most. Under -q the only signal is the exit code, so a script or a coding agent can't tell a missing identity from a network error or a contract failure, and logs show nothing to debug.
How we found it:
While checking how scripts and agents drive the CLI, as part of a review of HackMeridian 2026 hackathon repos (147 public repos) against CLI 28.1.0. Reproduced with the 28.1.0 release binary on 1 November 2026. Some repos wrap every CLI call in --quiet (for example LATCH scripts/testnet/bootstrap.mjs#L70-L72), so any failure there surfaces only as an exit code.
Outcome we're after:
When a command fails under -q, the reason is still available to the caller. How to get there is up to the implementer.
Compatibility: Successful runs under -q should stay as quiet as today, and exit codes shouldn't change.
How to check:
stellar -q tx sign --sign-with-key nobody ... < tx.xdrexits 1 and the reason is available.- A successful
stellar -q contract deploy ...still prints only the contract ID. - Commands that already emit JSON errors with
--output jsonbehave as before.
Related: #2622 (structured output and errors), #2635 (JSON error output for commands with --output json, which still works under -q), #1840 and #2300 (-q also silences the detailed tx sign output), #1971 (closed; alias ls info lines on stdout ignore -q).
- Lenguaje dominante
- Rust
- Estrellas
- 129
- Forks
- 153
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de stellar/stellar-cli
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
stellar/stellar-cli#2887 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
stellar/stellar-cli#2880 ·
Los mantenedores suelen responder en 1 día
-
arg_value_union panics on zero-arity union tuple case (unchecked type_[0] index)Posiblemente ocupada @hvoi la tomó hace 22 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
stellar/stellar-cli#2806 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
contract extend panics on single-change resultMetaXdr (index out of bounds at extend.rs:306)Quizá libre de nuevo @duongynhi000005-oss la tomó hace 18 días y no hay ningún pull request abierto. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
stellar/stellar-cli#2796 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Document stellar-cli's RPC trust boundaryQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
stellar/stellar-cli#2781 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de stellar/stellar-cli
Issues similares
-
feature request good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
TabularisDB/tabularis#1513 ·
Los mantenedores suelen responder en 2 días
-
bug priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
storytold/pdfcraft#7140 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug duplicate priority: low ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
storytold/vectorcraft#6956 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
PDF export issueAbiertobug priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
storytold/designcraft#2712 · 1 comentario ·
Los mantenedores suelen responder en 2 días