Skip to content

Commit df59af1

Browse files
committed
Merge pull request nwjs#1003 from kingFighter/reportMsg
Report a clear message to user when nw.pak is missing
2 parents ad079b5 + be7fd9d commit df59af1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shell_main_delegate.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include "base/command_line.h"
2424
#include "base/files/file_path.h"
25+
#include "base/file_util.h"
2526
#include "base/logging.h"
2627
#include "base/path_service.h"
2728
#include "base/strings/utf_string_conversions.h"
@@ -163,6 +164,7 @@ void ShellMainDelegate::InitializeResourceBundle() {
163164
FilePath pak_dir;
164165
PathService::Get(base::DIR_MODULE, &pak_dir);
165166
pak_file = pak_dir.Append(FILE_PATH_LITERAL("nw.pak"));
167+
CHECK(file_util::PathExists(pak_file)) << "nw.pak is missing";
166168
#endif
167169
ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
168170
}

0 commit comments

Comments
 (0)