Closed Bug 1049981 Opened 11 years ago Closed 11 years ago

Make error for non-existent files listed in SOURCES less ambiguous

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla34

People

(Reporter: poiru, Assigned: poiru)

Details

Attachments

(1 file)

"Reference to a file that doesn't exist in UNIFIED_SOURCES (Foo.cpp)" is quite easy to mistread.
The new message is similar to the equivalent error for EXPORTS.
Attachment #8468921 - Flags: review?(ted)
Comment on attachment 8468921 [details] [diff] [review] Make error for non-existent files listed in SOURCES less ambiguous Review of attachment 8468921 [details] [diff] [review]: ----------------------------------------------------------------- ::: python/mozbuild/mozbuild/frontend/emitter.py @@ +357,5 @@ > for symbol in ('SOURCES', 'HOST_SOURCES', 'UNIFIED_SOURCES'): > for src in (sandbox[symbol] or []): > if not os.path.exists(mozpath.join(sandbox['SRCDIR'], src)): > + raise SandboxValidationError('File listed in %s does not ' > + 'exist: %s' % (symbol, src), sandbox) You could probably stand a set of quotes around the %s for the filename just for extra clarity.
Attachment #8468921 - Flags: review?(ted) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: