mg-library 1.0.524 → 1.0.525
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions.js +3 -3
- package/package.json +1 -1
package/functions.js
CHANGED
@@ -253,10 +253,10 @@ function showToast(config) {
|
|
253
253
|
});
|
254
254
|
}
|
255
255
|
|
256
|
-
export function showToastWithError(error) {
|
256
|
+
export function showToastWithError(error, subMessage) {
|
257
257
|
let message = '(' + error.name + ')' + ' | ' + error.message;
|
258
|
-
if(
|
259
|
-
message +=
|
258
|
+
if (subMessage != undefined)
|
259
|
+
message += subMessage;
|
260
260
|
if (error.response != undefined)
|
261
261
|
if (error.response.data != undefined)
|
262
262
|
if (error.response.data.code != undefined)
|