Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit a1f47f9

Browse files
committed
improve error message in container_setup_volume
Signed-off-by: Peng Tao <[email protected]>
1 parent 96df7e6 commit a1f47f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/container.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static int container_setup_volume(struct hyper_container *container)
180180

181181
if (vol->readonly &&
182182
mount(volume, mountpoint, NULL, MS_BIND | MS_REMOUNT | MS_RDONLY, NULL) < 0) {
183-
perror("mount fsmap failed");
183+
perror("mount volume ro failed");
184184
return -1;
185185
}
186186

@@ -233,7 +233,7 @@ static int container_setup_volume(struct hyper_container *container)
233233
continue;
234234

235235
if (mount(src, mountpoint, NULL, MS_BIND | MS_REMOUNT | MS_RDONLY, NULL) < 0) {
236-
perror("mount fsmap failed");
236+
perror("mount fsmap ro failed");
237237
return -1;
238238
}
239239
}

0 commit comments

Comments
 (0)