Avatar
omochimetaru 5/22/2024 2:50 AM
switch event { case let .stackTrace(rawStackTrace): if let stackTrace = rawStackTrace.parsedStackTrace(in: environment) { terminal.write("\nAn error occurred, here's a stack trace for it:\n", inColor: .red) stackTrace.forEach { item in terminal.write(" \(item.symbol)", inColor: .cyan) terminal.write(" at \(item.location ?? "<unknown>")\n", inColor: .gray) } } else { terminal.write("\nAn error occurred, here's the raw stack trace for it:\n", inColor: .red) terminal.write( " Please create an issue or PR to the Carton repository\n" + " with your browser name and this raw stack trace so\n" + " we can add support for it: https://github.com/swiftwasm/carton\n", inColor: .gray ) terminal.write(rawStackTrace + "\n") }
2:50 AM
ここだから、mac側のターミナルに出して終わりな気がするよ (edited)