# HG changeset patch # User Ivan Pozdeev # Date 1532394555 25200 # Node ID 0ef51b53d1c169c49e78d24c34e18e3cdb82bb40 # Parent 2f009f26663d7e135c908cbe116c5c0009a3fb5e Bug 1323381 - Make 8dot3 error message useful for fixing; r=gps diff --git a/build/moz.configure/util.configure b/build/moz.configure/util.configure --- a/build/moz.configure/util.configure +++ b/build/moz.configure/util.configure @@ -141,18 +141,22 @@ def normalize_path(): if quote(path) == path: return path size = 0 while True: out = ctypes.create_unicode_buffer(size) needed = GetShortPathNameW(path, out, size) if size >= needed: if ' ' in out.value: - die("GetShortPathName returned a long path name. " - "Are 8dot3 filenames disabled?") + die("GetShortPathName returned a long path name: `%s`. " + "Use `fsutil file setshortname' " + "to create a short name " + "for any components of this path " + "that have spaces.", + out.value) return normsep(out.value) size = needed else: def normalize_path(path): return normsep(path) return normalize_path