Skip to content

fix: print KSorobanError message to stderr before exit - #131

Open
tensorworkerr wants to merge 1 commit into
runtimeverification:masterfrom
tensorworkerr:fix/print-ksorobanerror-to-stderr
Open

tensorworkerr wants to merge 1 commit into
runtimeverification:masterfrom
tensorworkerr:fix/print-ksorobanerror-to-stderr

Conversation

@tensorworkerr

Copy link
Copy Markdown

When _exec_test catches a KSorobanError (e.g. Unsupported SC value type: 'string'), it exits with code 1 but prints nothing — the user gets a silent failure with no clue about what went wrong.

This prints the error message to stderr before exiting, so errors like unsupported SC value types are surfaced.

Before:

Processing contract: test_sink_carbon
(exit code 1, no output)

After:

Processing contract: test_sink_carbon
Unsupported SC value type: 'string'
(exit code 1)

Closes #92

When `_exec_test` catches a KSorobanError (e.g. 'Unsupported SC value
type'), it exits with code 1 but prints nothing, leaving the user with
no indication of what went wrong.

Print the error message to stderr before exiting.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant