Opened 6 years ago

Closed 6 years ago

#219 closed defect (fixed)

mbuild provides less-than-useful error message when library name is invalid

Reported by: Eric Swenson Owned by: Gary Dixon
Priority: major Milestone: MR12.7
Component: Documentation Version: MR12.6f
Keywords: Cc:

Description

If you invoke mbuild with an invalid library in the .mb segment, the error message you get it not helpful. For example:

Info: validate_info_seg.info IN: foo.info REPLACE;

add_name: vis.info;

yields the error:

ERROR 11: Invalid library name: IN in statement on LINE 5
SOURCE:Info: validate_info_seg.info IN: foo.info REPLACE;

ERROR 05: Unknown clause begins: IN for statement on LINE 5
SOURCE: Info: validate_info_seg.info IN: foo.info REPLACE;
mbuild (read): Improper data in build script file. Parsing build script: >udd>sa>ejs>work>doc-obs>test>test.mb

The invalid library is "foo" or "foo.info". It is not the word "IN".

I would have expected the error message to read:

ERROR 11: Invalid library name: foo.info in IN statement on LINE 5

Change History (2)

comment:1 by Gary Dixon, 6 years ago

Owner: changed from Eric Swenson to Gary Dixon
Status: newaccepted

comment:2 by Gary Dixon, 6 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in mbuild_script_.pl1 and mbuild_script_parse_.rd targeted for installation in the first part of MCR10086.

Note: See TracTickets for help on using tickets.