parser error message for empty variables not helpful

Bug #1516436 reported by Christian Boltz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned

Bug Description

The parser prints out a non-helpful error message when setting an empty variable.

@{foo} =

-> AppArmor parser error, in stdin line 2: syntax error, unexpected $end, expecting TOK_VALUE

@{foo} =
/foo { }

-> AppArmor parser error, in stdin line 2: syntax error, unexpected TOK_ID, expecting TOK_VALUE

A message saying "Variables must at least have one value" would be more helpful.

Tags: aa-parser
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.