File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ pub enum CommandError {
95
95
#[ error( "sandbox image missing from the local system: {0}" ) ]
96
96
SandboxImageMissing ( #[ source] Box < CommandError > ) ,
97
97
98
+ /// Failed to create the sandbox container
99
+ #[ error( "sandbox container could not be created: {0}" ) ]
100
+ SandboxContainerCreate ( #[ source] Box < CommandError > ) ,
101
+
98
102
/// Running rustwide inside a Docker container requires the workspace directory to be mounted
99
103
/// from the host system. This error happens if that's not true, for example if the workspace
100
104
/// lives in a directory inside the container.
Original file line number Diff line number Diff line change @@ -282,7 +282,8 @@ impl SandboxBuilder {
282
282
283
283
let out = Command :: new ( workspace, "docker" )
284
284
. args ( & args)
285
- . run_capture ( ) ?;
285
+ . run_capture ( )
286
+ . map_err ( |err| CommandError :: SandboxContainerCreate ( Box :: new ( err) ) ) ?;
286
287
Ok ( Container {
287
288
id : out. stdout_lines ( ) [ 0 ] . clone ( ) ,
288
289
workspace,
You can’t perform that action at this time.
0 commit comments