added new error message (detail)

This commit is contained in:
Tiago vasconcelos
2021-10-19 17:01:57 +01:00
parent 3040016323
commit 41abbb44f7

View File

@@ -225,7 +225,7 @@ window.LNbits = {
Quasar.plugins.Notify.create({
timeout: 5000,
type: types[error.response.status] || 'warning',
message: error.response.data.message || null,
message: error.response.data.message || error.response.data.detail || null,
caption:
[error.response.status, ' ', error.response.statusText]
.join('')