Skip to content

Commit

Permalink
fix hookerror files missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Dec 11, 2023
1 parent de145e9 commit b3cbd51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/gamebridge/payloads/ErrorPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export default class ErrorPayload extends Payload {
const err = lines[0];
const [path, linenr] = err.split(":", 2);
const stack = lines.splice(2).map((l, i) => `${i + 1}. ${l}`);
const file = await getOrFetchGmodFile(path + linenr);
const file = await getOrFetchGmodFile(path + ":" + linenr);
const embeds: APIEmbed[] = [];
const embed = {
title: hook_error.name,
description: stack.join("\n").replace("`", "\\`"),
description: stack.join("\n").replaceAll("```", "​`​`​`"),
footer: {
text: `${
server.gamemode
Expand Down

0 comments on commit b3cbd51

Please sign in to comment.