Commit d65ee240 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Improve layout of a couple of error messages.

parent b43e3629
......@@ -160,7 +160,7 @@ vcc_Compound(struct vcc *tl)
vcc_NextToken(tl);
} else {
VSB_printf(tl->sb,
"Inline-C not allowed");
"Inline-C not allowed\n");
vcc_ErrWhere(tl, tl->t);
}
break;
......@@ -287,7 +287,7 @@ vcc_Parse(struct vcc *tl)
vcc_NextToken(tl);
} else {
VSB_printf(tl->sb,
"Inline-C not allowed");
"Inline-C not allowed\n");
vcc_ErrWhere(tl, tl->t);
}
break;
......
......@@ -91,8 +91,7 @@ vcc_ParseImport(struct vcc *tl)
return;
}
if (!vcc_IdIs(tl->t, "from")) {
VSB_printf(tl->sb, "Expected 'from path...' at ");
vcc_ErrToken(tl, tl->t);
VSB_printf(tl->sb, "Expected 'from path...'\n");
vcc_ErrWhere(tl, tl->t);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment