tname = makeAbsPath(templatename);
if (!tname.empty()) {
- if (!b->readFile(tname)) {
+ if (b->readFile(tname) != Buffer::ReadSuccess) {
docstring const file = makeDisplayPath(tname.absFileName(), 50);
docstring const text = bformat(
_("The specified document template\n%1$s\ncould not be read."),