]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Report the missing path in error message 36900/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 31 Aug 2020 10:39:37 +0000 (12:39 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Sun, 13 Sep 2020 16:02:02 +0000 (18:02 +0200)
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 <wjw@digiware.nl>
src/pybind/mgr/dashboard/module.py

index 27501f963b9b1cc24ed91452e98b3cd198f6a9af..eb1b30f7bf160f6b4fbdfc80bec4b2532f74b4ca 100644 (file)
@@ -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, ""