mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:13:41 +00:00
Report ifcmerge conflicts in pop-up #3096
This commit is contained in:
@@ -325,12 +325,12 @@ class IfcGit:
|
|||||||
# merge is expected to fail, run ifcmerge
|
# merge is expected to fail, run ifcmerge
|
||||||
try:
|
try:
|
||||||
repo.git.mergetool(tool="ifcmerge")
|
repo.git.mergetool(tool="ifcmerge")
|
||||||
except:
|
except git.exc.GitCommandError as exc:
|
||||||
|
message = re.sub("( stderr: '|')", "", exc.stderr)
|
||||||
# ifcmerge failed, rollback
|
# ifcmerge failed, rollback
|
||||||
repo.git.merge(abort=True)
|
repo.git.merge(abort=True)
|
||||||
# FIXME need to report errors somehow
|
|
||||||
|
|
||||||
operator.report({"ERROR"}, "IFC Merge failed")
|
operator.report({"ERROR"}, "IFC Merge failed:" + message)
|
||||||
return False
|
return False
|
||||||
except:
|
except:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user