From: Willem Jan Withagen Date: Mon, 31 Aug 2020 10:39:37 +0000 (+0200) Subject: mgr/dashboard: Report the missing path in error message X-Git-Tag: v16.1.0~1034^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6180bb1516df3f2ba6292107b9488d99f656b67d;p=ceph.git mgr/dashboard: Report the missing path in error message Otherwise the error message only reports that something is missing. No what it is missing, helps debugging when this occurs. As it sometimes does on FreeBSD because we insert the prebuild rpm instead of building it from source. Signed-off-by: Willem Jan Withagen --- diff --git a/src/pybind/mgr/dashboard/module.py b/src/pybind/mgr/dashboard/module.py index 27501f963b9b..eb1b30f7bf16 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -278,7 +278,8 @@ class Module(MgrModule, CherryPyConfig): return False, "Missing dependency: cherrypy" if not os.path.exists(cls.get_frontend_path()): - return False, "Frontend assets not found: incomplete build?" + return False, ("Frontend assets not found at '{}': incomplete build?" + .format(cls.get_frontend_path())) return True, ""