libos: Add error handling to vector argument usage
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-05-13 13:22:49 +02:00
parent 65d3195caa
commit 4d106b6b8c
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -277,7 +277,7 @@ namespace os
else { TRY(sb.format(" [%s]", arg.name.chars())); }
}
if (m_vector_argument) sb.format("%s..."_sv, m_positional_args.size() ? "" : " ");
if (m_vector_argument) TRY(sb.format("%s..."_sv, m_positional_args.size() ? "" : " "));
TRY(sb.add('\n'));