Gotta love the user-friendliness of these old Unix tools:
if (argc<4) {
error("Arg count");
exit(1);
}
SQLite error messages are similarly spartan. I wrote a SQLite extension recently and didn't find it difficult to have detailed/dynamic error messages, so it may have just been a preference of the author.