Commit | Line | Data |
---|---|---|
03c229bf SK |
1 | /^ERROR/ { |
2 | src = $2 | |
3 | # Not just using $3 for body - because body might contain a character | |
4 | # identical to FS | |
5 | len_line = length($0) | |
6 | len_head = length($1 FS $2 FS) | |
7 | len_body = len_line - len_head | |
8 | body = substr($0, len_head + 1, len_body) | |
9 | alert("hi", "ERROR_IN_" src, body) | |
10 | } |