fix(@communities): Better error message when failing to import

community

fixes #5382
This commit is contained in:
Anthony Laibe 2022-05-02 11:55:50 +02:00 committed by Anthony Laibe
parent 35d52fe63b
commit a0bebeb78b
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ QtObject:
error "Error importing the community: ", msg = e.msg
# We should apply some notification mechanism on the application level which will deal with errors and
# notify user about them. Till then we're using this way.
self.events.emit(SIGNAL_COMMUNITY_IMPORTED, CommunityArgs(error: e.msg))
self.events.emit(SIGNAL_COMMUNITY_IMPORTED, CommunityArgs(error: "Error while importing the community"))
proc exportCommunity*(self: Service, communityId: string): string =
try: