Skip to content

Commit

Permalink
Improve error reporting for headless server.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalh committed Aug 15, 2017
1 parent 9b66db2 commit f740c41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions launcher/ModdedAppLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ void ModdedAppLauncher::launch()
{
std::string appPath = getAppPath();
uint32_t checksum = GetFileCRC32(appPath.c_str());

// Error reporting for headless env
if (checksum == 0)
printf("Invalid App Path %s\n", appPath.c_str());
else if (checksum != m_expectedCrc)
printf("Invalid App Checksum %lx, expected %lx\n", checksum, m_expectedCrc);

if (checksum != m_expectedCrc)
throw IntegrityCheckFailedException(checksum);

Expand Down

0 comments on commit f740c41

Please sign in to comment.