Merge branch 'cleanup_empty_scans' into 'v3'
Added purge_empty_scans() method Closes #370 See merge request openflexure/openflexure-microscope-server!257
This commit is contained in:
commit
c793620fcd
2 changed files with 58 additions and 9 deletions
|
|
@ -144,10 +144,16 @@ Vue.mixin({
|
|||
if (error.response) {
|
||||
// If the response is a nicely formatted JSON response from the server
|
||||
if (error.response.data.message) {
|
||||
return `${error.response.status}: ${error.response.data.message}`;
|
||||
return `${error.response.data.message}`;
|
||||
}
|
||||
if (error.response.data.detail) {
|
||||
return `${error.response.data.detail}`;
|
||||
}
|
||||
// If the response is just some generic error response
|
||||
return `${error.response.status}: ${error.response.data}`;
|
||||
if (error.response.data){
|
||||
return `${error.response.data}`;
|
||||
}
|
||||
return `${error.response}`;
|
||||
}
|
||||
// If we have an error object with a message, use that
|
||||
if (error.message) return `${error.message}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue