Print console message on illegal --datadir
Bug #1703833 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
While starting Widelands from console under Windows while specifying a nonexistent --datadir, Widelands was terminated before showing any GUI and no message shown.
There should be a log message.
I am assuming that the same will happen under other OSses.
Related branches
lp:~widelands-dev/widelands/bug-1703833-catch-missing-datadir
- Notabilis: Approve (diff, testing)
-
Diff: 30 lines (+10/-3)1 file modifiedsrc/wlapplication.cc (+10/-3)
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
status: | Triaged → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
Thanks for reporting.
I get the following error message on Ubuntu when running Widelands r8400: to-repo] /widelands/ src/wlapplicati on.cc:163: std::__ cxx11:: string {anonymous} ::absolute_ path_if_ not_windows( const string&): Assertion `rp' failed.
Realpath: (null)
widelands: /[path-
(I seem to remember I filed a similar bug report on some cli options which didn't deal with non-existing directories, couldn't find it at the moment, but there might be similar bugs lurking for other options.)