Mars doesn't check if it's opening a directory

Bug #486977 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Fix Released
Low
Matt Giuca

Bug Description

If Mars is run with a directory as an argument, it works as if it were given an empty file. (It fails with "Undefined variable: main.", and works fine with -i). This is because Mercury's file reading works fine on directories, and behaves like an empty file.

Make Mars check if it's opening a directory and print an error.

Related branches

Matt Giuca (mgiuca)
Changed in mars:
status: Triaged → In Progress
Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r916.

Changed in mars:
status: In Progress → Fix Committed
Matt Giuca (mgiuca)
Changed in mars:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.