mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-24 02:41:15 +00:00
Fix confusing error messages from sloppy copying and pasting of code
This commit is contained in:
parent
1b72804358
commit
c19c913bf9
@ -228,11 +228,11 @@ void mbtiles_close(sqlite3 *outdb, char **argv) {
|
|||||||
char *err;
|
char *err;
|
||||||
|
|
||||||
if (sqlite3_exec(outdb, "ANALYZE;", NULL, NULL, &err) != SQLITE_OK) {
|
if (sqlite3_exec(outdb, "ANALYZE;", NULL, NULL, &err) != SQLITE_OK) {
|
||||||
fprintf(stderr, "%s: index metadata: %s\n", argv[0], err);
|
fprintf(stderr, "%s: ANALYZE failed: %s\n", argv[0], err);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (sqlite3_exec(outdb, "VACUUM;", NULL, NULL, &err) != SQLITE_OK) {
|
if (sqlite3_exec(outdb, "VACUUM;", NULL, NULL, &err) != SQLITE_OK) {
|
||||||
fprintf(stderr, "%s: index tiles: %s\n", argv[0], err);
|
fprintf(stderr, "%s: VACUUM failed: %s\n", argv[0], err);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (sqlite3_close(outdb) != SQLITE_OK) {
|
if (sqlite3_close(outdb) != SQLITE_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user