mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Error when non-allow_empty property is empty
This commit is contained in:
parent
a37eb82da8
commit
e21828080b
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,8 @@
|
||||||
} else {
|
} else {
|
||||||
% if allow_empty:
|
% if allow_empty:
|
||||||
try!(dest.write_str("none"));
|
try!(dest.write_str("none"));
|
||||||
|
% else:
|
||||||
|
error!("Found empty value for property ${name}");
|
||||||
% endif
|
% endif
|
||||||
}
|
}
|
||||||
for i in iter {
|
for i in iter {
|
||||||
|
@ -97,6 +99,8 @@
|
||||||
} else {
|
} else {
|
||||||
% if allow_empty:
|
% if allow_empty:
|
||||||
try!(dest.write_str("none"));
|
try!(dest.write_str("none"));
|
||||||
|
% else:
|
||||||
|
error!("Found empty value for property ${name}");
|
||||||
% endif
|
% endif
|
||||||
}
|
}
|
||||||
for i in iter {
|
for i in iter {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue