support processing of Error types in notifications, adresses #441
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user