@@ -136,7 +136,11 @@ std::error_code SonicPiAPI::RunProcess(const std::vector<std::string>& args, std
136
136
}
137
137
else if (ec)
138
138
{
139
- LOG (ERR, " RunProcess - " << ec.message ());
139
+
140
+ LOG (ERR, " RunProcess - error number: " << ec.value ()
141
+ << " message: " << ec.message ()
142
+ << " category: " << ec.category ().name ());
143
+
140
144
return ec;
141
145
}
142
146
@@ -146,7 +150,10 @@ std::error_code SonicPiAPI::RunProcess(const std::vector<std::string>& args, std
146
150
ec = reproc::drain (proc, sink, sink);
147
151
if (ec)
148
152
{
149
- LOG (ERR, " RunProcess Draining - " << ec.message ());
153
+ LOG (ERR, " RunProcess Draining - error number: " << ec.value ()
154
+ << " message: " << ec.message ()
155
+ << " category: " << ec.category ().name ());
156
+
150
157
return ec;
151
158
}
152
159
}
@@ -156,7 +163,10 @@ std::error_code SonicPiAPI::RunProcess(const std::vector<std::string>& args, std
156
163
std::tie (status, ec) = proc.stop (options.stop );
157
164
if (ec)
158
165
{
159
- LOG (ERR, " RunProcess - " << ec.message ());
166
+ LOG (ERR, " RunProcess - error number: " << ec.value ()
167
+ << " message: " << ec.message ()
168
+ << " category: " << ec.category ().name ());
169
+
160
170
return ec;
161
171
}
162
172
return ec;
@@ -193,7 +203,9 @@ std::shared_ptr<reproc::process> SonicPiAPI::StartProcess(const std::vector<std:
193
203
}
194
204
else if (ec)
195
205
{
196
- LOG (ERR, " StartProcess - " << ec.message ());
206
+ LOG (ERR, " StartProcess - error number: " << ec.value ()
207
+ << " message: " << ec.message ()
208
+ << " category: " << ec.category ().name ());
197
209
}
198
210
199
211
// Something went wrong. We've already logged an error
0 commit comments