support processing of Error types in notifications, adresses #441

This commit is contained in:
El RIDO
2019-06-18 19:45:52 +02:00
parent 7ab6411f71
commit b1be74a56f
3 changed files with 5 additions and 2 deletions

View File

@@ -1544,6 +1544,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
} else if (typeof args === 'string') {
// convert string to array if needed
args = [args];
} else if (args instanceof Error) {
// extract message into array if needed
args = [args.message];
}
// pass to custom handler if defined