mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/console: Ensure different serializations available w/ raw/source arguments.
This commit is contained in:
parent
b4df449068
commit
525db9f5e3
1 changed files with 2 additions and 2 deletions
|
@ -7330,7 +7330,7 @@ console_cmd__event(opt &out, const string_view &line)
|
|||
case hash("raw"):
|
||||
{
|
||||
if(event.source)
|
||||
out << event.source << std::endl;
|
||||
out << json::strung{event.source} << std::endl;
|
||||
else
|
||||
out << event << std::endl;
|
||||
|
||||
|
@ -7340,7 +7340,7 @@ console_cmd__event(opt &out, const string_view &line)
|
|||
case hash("source"):
|
||||
{
|
||||
if(event.source)
|
||||
out << event.source << std::endl;
|
||||
out << string_view{event.source} << std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue