Skip to content

Commit

Permalink
Log error of exporting map file
Browse files Browse the repository at this point in the history
  • Loading branch information
snagasawa committed Jul 20, 2024
1 parent e42fb8b commit 4e3a779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tiledapp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ int main(int argc, char *argv[])

if (!success) {
qWarning().noquote() << QCoreApplication::translate("Command line", "Failed to export map to target file.");
errorMsg = outputFormat->errorString();
if (!errorMsg.isEmpty())
qWarning().noquote() << errorMsg;
return 1;
}
return 0;
Expand Down

0 comments on commit 4e3a779

Please sign in to comment.