Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Show error dialog on export failure
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Apr 13, 2022
commit 433f4c50cefb065328b0f5c746313f9d28b626d0
8 changes: 5 additions & 3 deletions src/components/ExportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@

<script>
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import confirmPassword from '@nextcloud/password-confirmation'
import { generateOcsUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'

import Button from '@nextcloud/vue/dist/Components/Button'
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
Expand Down Expand Up @@ -152,8 +153,9 @@ export default {
this.$emit('refresh-status')
this.openModal()
} catch (error) {
this.logger.error(`Error starting user export: ${error.message || 'Unknown error'}`, { error })
// TODO show error message in a dialog
const errorMessage = error.message || 'Unknown error'
this.logger.error(`Error starting user export: ${errorMessage}`, { error })
showError(errorMessage)
}
},

Expand Down