Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanwamelen committed Oct 21, 2023
1 parent 27f1fea commit 0be07d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/abstractplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3027,7 +3027,7 @@ async function markAsPublished(userid: string, pars: { id: string; metagame: str
},
}));
if (!data.Item)
throw new Error(`No game ${pars.id} found in table ${process.env.ABSTRACT_PLAY_TABLE}`);
throw new Error(`No game ${pars.metagame + "#1#" + pars.id} found in table ${process.env.ABSTRACT_PLAY_TABLE}`);
const game = data.Item as FullGame;
if (!game.players.find((p: { id: any; }) => p.id === userid))
throw new Error(`Only players can publish exploration!`);
Expand Down

0 comments on commit 0be07d8

Please sign in to comment.