diff --git a/src/pages/search-detail/index.vue b/src/pages/search-detail/index.vue
index 57ec44b..8e317ad 100644
--- a/src/pages/search-detail/index.vue
+++ b/src/pages/search-detail/index.vue
@@ -7,12 +7,15 @@
class="alert alert-danger alert-dismissible fade show"
role="alert"
>
- Error! An error has occurred. Please try again.
+ Error!
+ An error has occurred
+ : {{ error_msg }}
@@ -116,6 +119,7 @@ export default {
return {
versionInfo: {},
error: null,
+ error_msg: null,
loading: true,
response: null,
isExpanded: false,
@@ -192,6 +196,11 @@ export default {
this.response = response.data;
} catch (error) {
+ if (error && error.message && error.message.includes("404")) {
+ this.error_msg = "No search entry found for PID"
+ } else {
+ this.error_msg = "Unknown error fetching search entry for PID"
+ }
this.error = true;
} finally {
this.loading = false;
@@ -205,6 +214,7 @@ export default {
this.consumeDownloadStream(response);
})
.catch((error) => {
+ this.error_msg = "Unknown error when exporting archive"
this.error = true;
});
},