Skip to content

Improved assert output #178

@jlp765

Description

@jlp765

Could the line of the source code with the assertion be shown, eg, something like:

Assertion Failure
  assert n < 24;
Felix location: .../test.flx 2[3]-2[17]

for

fun test (n) : bool = {
  assert n < 24;
  return true;
}
println$ test 48;

Current output:

Felix exception handler
Assertion Failure
Felix location: .../test.flx 2[3]-2[17]
C++ location  : ..../test.cpp 39
Error 253 in flx: Unknown error 253

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