1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 14:53:16 +02:00

Don't show "from call site" when we don't know the call site

This gets rid of stack trace entries like

       … from call site

       at «stdin»:0: (source not available)
This commit is contained in:
Eelco Dolstra 2022-09-28 17:01:16 +02:00
parent a291e37b20
commit c3c0682842
3 changed files with 9 additions and 4 deletions

View file

@ -52,7 +52,11 @@ public:
explicit operator bool() const { return id > 0; }
bool operator<(const PosIdx other) const { return id < other.id; }
bool operator <(const PosIdx other) const { return id < other.id; }
bool operator ==(const PosIdx other) const { return id == other.id; }
bool operator !=(const PosIdx other) const { return id != other.id; }
};
class PosTable