[lxc-devel] [lxd/master] improve error message

tych0 on Github lxc-bot at linuxcontainers.org
Mon Jun 27 22:45:27 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160627/70c3eef0/attachment.bin>
-------------- next part --------------
From c718e09fe546fa904462a60755a07148657d3ab3 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Mon, 27 Jun 2016 16:44:32 -0600
Subject: [PATCH] improve error message

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 lxd/container_lxc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 6fd0ee4..c3f87a3 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -3990,7 +3990,7 @@ func (c *containerLXC) createDiskDevice(name string, m shared.Device) (string, e
 		if isOptional {
 			return "", nil
 		}
-		return "", fmt.Errorf("Source path doesn't exist")
+		return "", fmt.Errorf("Source path %s doesn't exist for device %s", srcPath, name)
 	}
 
 	// Create the devices directory if missing


More information about the lxc-devel mailing list