Skip to content

Don't keep emitting chalk info in chalk extract when a file doesn't even exist #654

Description

@eatonphil

Description

It is very confusing that I get this output that kind of looks like chalk succeeded in doing something even when a file doesn't even exist.

I'd expect it to exit as soon as it gets this error.

admin@ubuntu:~$ ./chalk extract flubber
warn:  Disabling docker codec as docker command is not available
info:  Installed bash auto-completion file to: /home/admin/.local/share/bash_completion/completions/chalk.bash
info:  Added sourcing of autocomplete to ~/.bash_completion file
warn:  docker: no command found in PATH. `chalk docker` not available.
error: flubber: No image or container found
warn:  No chalk marks extracted
info:  /home/admin/.local/chalk/chalk.log: Open (sink conf='default_out')
info:  Full chalk report appended to: ~/.local/chalk/chalk.log
[
  {
    "_OPERATION": "extract",
    "_DATETIME": "2026-03-31T19:53:22.430+00:00",
    "_ENV": {

I'd expect it to do something like:

admin@ubuntu:~$ ./chalk extract flubber
warn:  Disabling docker codec as docker command is not available
info:  Installed bash auto-completion file to: /home/admin/.local/share/bash_completion/completions/chalk.bash
info:  Added sourcing of autocomplete to ~/.bash_completion file
warn:  docker: no command found in PATH. `chalk docker` not available.
error: flubber: No image or container found
admin@ubuntu~$

Impact

Not low.

Steps to Reproduce

Run chalk extract on any non-existing file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions