aboutsummaryrefslogtreecommitdiff
path: root/src/components/image_cropper/image_cropper.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-02-08 22:17:53 -0500
committertaehoon <th.dev91@gmail.com>2019-02-15 13:34:33 -0500
commit2de756aa0c27ae5267032e07c2e1f998d49d0df5 (patch)
treefa53a5be59371b977e2553bb001cba2043b70ac8 /src/components/image_cropper/image_cropper.js
parent2132d58075c71bd8a445288d052cc05e321fdf24 (diff)
Better error handling
Diffstat (limited to 'src/components/image_cropper/image_cropper.js')
-rw-r--r--src/components/image_cropper/image_cropper.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/image_cropper/image_cropper.js b/src/components/image_cropper/image_cropper.js
index 4eaa08d4..da94427a 100644
--- a/src/components/image_cropper/image_cropper.js
+++ b/src/components/image_cropper/image_cropper.js
@@ -50,6 +50,9 @@ const ImageCropper = {
},
cancelText () {
return this.cancelButtonLabel || this.$t('image_cropper.cancel')
+ },
+ submitErrorMsg () {
+ return this.submitError && this.submitError instanceof Error ? this.submitError.toString() : this.submitError
}
},
methods: {