mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +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
|
||||
try:
|
||||
repo.git.mergetool(tool="ifcmerge")
|
||||
except:
|
||||
except git.exc.GitCommandError as exc:
|
||||
message = re.sub("( stderr: '|')", "", exc.stderr)
|
||||
# ifcmerge failed, rollback
|
||||
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
|
||||
except:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user