Skip to content

Commit

Permalink
Merge pull request #879 from aanil/queues_update
Browse files Browse the repository at this point in the history
Print errors to console to begin with
  • Loading branch information
aanil authored Oct 25, 2024
2 parents 35c46db + b2820c8 commit 0093d2d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run_dir/static/js/pricing_quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to fetch project data, please try again or contact a system administrator.')
console.log('Unable to fetch project data', error)
})
this.get_saved_agreement_data(proj_id)
}
Expand All @@ -200,6 +201,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to fetch order data, please try again or contact a system administrator.')
console.log('Unable to fetch order data', error)
})
}
},
Expand All @@ -221,6 +223,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to fetch agreement data, please try again or contact a system administrator.')
console.log('Unable to fetch agreement data', error)
})
},
toggle_discontinued() {
Expand Down Expand Up @@ -281,6 +284,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to fetch used cost calculator data, please try again or contact a system administrator.')
console.log('Unable to fetch used cost calculator data', error)
})
}
}
Expand Down Expand Up @@ -333,6 +337,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to mark agreement signed, please try again or contact a system administrator.')
console.log('Unable to mark agreement signed', error)
})
}
},
Expand All @@ -358,6 +363,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to generate invoice spec, please try again or contact a system administrator.')
console.log('Unable to generate invoice spec', error)
})
}
},
Expand All @@ -371,6 +377,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to fetch agreement template data, please try again or contact a system administrator.')
console.log('Unable to fetch agreement template data', error)
})
},
add_cost_label: function(){
Expand Down Expand Up @@ -412,6 +419,7 @@ app.component('v-pricing-quote', {
})
.catch(error => {
this.$root.error_messages.push('Unable to save agreement, please try again or contact a system administrator.')
console.log('Unable to save agreement', error)
})
}
},
Expand Down

0 comments on commit 0093d2d

Please sign in to comment.