Skip to content

Commit c87123b

Browse files
varmar05wonder-sk
authored andcommitted
Error msg fixes
1 parent 9787fb4 commit c87123b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dbsync.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,12 @@ def dbsync_init(mc, from_gpkg=True):
607607
if len(changes_gpkg_base):
608608
changes = json.dumps(changes_gpkg_base, indent=2)
609609
print(f"Changeset after internal copy (should be empty):\n {changes}")
610-
raise DbSyncError
610+
raise DbSyncError('Initialization of db-sync failed due to a bug in geodiff.\n '
611+
'Please report this problem to mergin-db-sync developers')
611612
except DbSyncError:
612613
# add comment to base schema before throwing exception
613614
_set_db_project_comment(conn, config.db_schema_base, config.mergin_project_name, local_version,
614-
error='Initialization of db-sync failed due to a bug in geodiff.\n '
615-
'Please report this problem to mergin-db-sync developers')
615+
error='Initialization of db-sync failed due to a bug in geodiff')
616616
raise
617617

618618
_set_db_project_comment(conn, config.db_schema_base, config.mergin_project_name, local_version)
@@ -664,11 +664,11 @@ def dbsync_init(mc, from_gpkg=True):
664664
if len(changes_gpkg_base):
665665
changes = json.dumps(changes_gpkg_base, indent=2)
666666
print(f"Changeset after internal copy (should be empty):\n {changes}")
667-
raise DbSyncError
667+
raise DbSyncError('Initialization of db-sync failed due to a bug in geodiff.\n '
668+
'Please report this problem to mergin-db-sync developers')
668669
except DbSyncError:
669670
_set_db_project_comment(conn, config.db_schema_base, config.mergin_project_name, local_version,
670-
error='Initialization of db-sync failed due to a bug in geodiff.\n '
671-
'Please report this problem to mergin-db-sync developers')
671+
error='Initialization of db-sync failed due to a bug in geodiff')
672672
raise
673673

674674
# upload gpkg to mergin (client takes care of storing metadata)

0 commit comments

Comments
 (0)