Skip to content

Commit 66195b8

Browse files
Improve error message when publishing.
1 parent ab2f8a3 commit 66195b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extensions/includes/publish.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ function handlePublishError(error) {
189189
tiled.alert(`Failed to publish! API returned error: ${error.info} (code: ${error.code})`);
190190
return;
191191
}
192-
tiled.alert('Failed to publish! Please check the console for details.');
193-
tiled.log(`Error details: ${error.message || error}`);
192+
tiled.alert(`Failed to publish! ${error.message || error}`);
193+
if (error.stack) {
194+
tiled.log(`Error details: ${error.stack}`);
195+
}
194196
}
195197

196198
const publishAction = tiled.registerAction('PublishToWiki', () => {

0 commit comments

Comments
 (0)