Skip to content

Commit

Permalink
don't send the whole file
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Nov 17, 2023
1 parent 46b4c5a commit d8d4a50
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 @@ -26,9 +26,9 @@ export default class ErrorPayload extends Payload {

const lines = hook_error.errormsg.split(/\r?\n/);
const err = lines[0];
const path = err.split(":")[0];
const [path, linenr] = err.split(":", 2);
const stack = lines.splice(2).map((l, i) => `${i + 1}. ${l}`);
const file = await getOrFetchGmodFile(path);
const file = await getOrFetchGmodFile(path + linenr);
const embeds: APIEmbed[] = [];
const embed = {
title: hook_error.name,
Expand Down

0 comments on commit d8d4a50

Please sign in to comment.