Skip to content

Commit b911c89

Browse files
authored
Merge pull request #148 from etr/etr-patch-2
Fix segfault on message output when a port is already occupied
2 parents a7d5e0f + 0b1e6ac commit b911c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ bool webserver::start(bool blocking)
325325

326326
if(this->daemon == NULL)
327327
{
328-
throw std::invalid_argument("Unable to connect daemon to port: " + this->port);
328+
throw std::invalid_argument("Unable to connect daemon to port: " + std::to_string(this->port));
329329
}
330330

331331
bool value_onclose = false;

0 commit comments

Comments
 (0)