Skip to content

Commit

Permalink
SPL-196891: Updated regex for error message parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
pdudhaiya-crest committed Nov 20, 2020
1 parent f157819 commit 4646751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function parseErrorMsg(data) {
var error_msg = '', rsp, regex, msg, matches;
try {
rsp = JSON.parse(data.responseText);
regex = /.+"REST Error \[[\d]+\]:\s+.+\s+--\s+([\s\S]*)"\.\s*See splunkd\.log for more details\./;
regex = /.+"REST Error \[[\d]+\]:\s+.+\s+--\s+([\s\S]*)"\.\s*See splunkd\.log(\/python.log)? for more details\./;
msg = String(rsp.messages[0].text);
matches = regex.exec(msg);
if (matches && matches[1]) {
Expand Down

0 comments on commit 4646751

Please sign in to comment.