Mir

Mir error messages from exceptions are not user-friendly

Bug #1381398 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Triaged
Medium
Unassigned
mir (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Mir error messages from exceptions are not user-friendly.

Test case:
mir_demo_server_shell --vt 123

Expected: Some human-readable explanation about a failure to open VT 123

Observed:
ERROR: /build/buildd/mir-0.8.0+14.10.20141010/src/platform/graphics/mesa/linux_virtual_terminal.cpp(272): Throw in function int mir::graphics::mesa::LinuxVirtualTerminal::open_vt(int)
Dynamic exception type: N5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE
std::exception::what: Failed to open current VT
2, "No such file or directory"[PN5boost18errinfo_file_name_E] = /dev/tty123

What shouldn't be visible: File paths, mangled symbol names, double-colons or the words "throw" or "exception". These are all words useful to programmers, but our target audience for the general activity of starting a shell is users, not programmers.

What should be visible: Information that's meaningful without any knowledge of the Mir source code; Some mention of "Failed to open VT", and maybe "/dev/tty123", maybe "No such file or directory".

description: updated
Revision history for this message
Michał Sawicz (saviq) wrote :

Syncing task from Mir.

Changed in mir (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.