diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index b39130a..0eb379b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -417,8 +417,12 @@ void watchLocalIdentity(const vector<string> &) if (idt) { ostringstream ss; ss << "local-identity"; - for (optional<Identity> i = idt; i; i = i->owner()) - ss << " " << i->name().value(); + for (optional<Identity> i = idt; i; i = i->owner()) { + if (auto name = i->name()) + ss << " " << i->name().value(); + else + ss << " <unnamed>"; + } printLine(ss.str()); } }); |