Skip to content

Commit

Permalink
Fix #3061 error message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 21, 2024
1 parent 691db34 commit b1cacd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/components/ErrorMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,14 @@ export const ErrorMessage = ({ msg, stacktrace, cell_id }) => {
}),
},
{
pattern: /Multiple definitions for (.*)\./,
pattern: /Multiple definitions for (.*)/,
display: (/** @type{string} */ x) =>
x.split("\n").map((line) => {
const match = line.match(/Multiple definitions for (.*)\./)
const match = line.match(/Multiple definitions for (.*)/)

if (match) {
let syms_string = match[1]
// replace: remove final dot
let syms_string = match[1].replace(/\.$/, "")
let syms = syms_string.split(/, | and /)

let symbol_links = syms.map((what) => {
Expand Down

0 comments on commit b1cacd8

Please sign in to comment.