Fix incorrect error message.

This commit is contained in:
2026-08-31 10:13:46 +01:00
parent 0d126021d0
commit 24914028c0
+1 -1
View File
@@ -47,7 +47,7 @@ void Function::register_extented(BEd &ctx) {
.handle = [](BEd &ctx, const buffer::Address &, vase::Shard *, const Argument &, std::vector<buffer::Line> *) { .handle = [](BEd &ctx, const buffer::Address &, vase::Shard *, const Argument &, std::vector<buffer::Line> *) {
char cwd[PATH_MAX]; char cwd[PATH_MAX];
if (!getcwd(cwd, sizeof(cwd))) if (!getcwd(cwd, sizeof(cwd)))
throw ed_error("Directory changed, but couldn't determine current directory."); throw ed_error("Can't determine current directory.");
ctx.io.write_line(cwd); ctx.io.write_line(cwd);
}, },
} }