base: fix misleading ROM-connection error message
This commit is contained in:
parent
f9269f5cb1
commit
56ed7addbc
|
@ -29,13 +29,13 @@ namespace Genode {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Rom_session_capability _create_session(const char *filename, const char *label)
|
Rom_session_capability _create_session(const char *module_name, const char *label)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return session("ram_quota=4K, filename=\"%s\", label=\"%s\"",
|
return session("ram_quota=4K, filename=\"%s\", label=\"%s\"",
|
||||||
filename, label ? label: filename); }
|
module_name, label ? label: module_name); }
|
||||||
catch (...) {
|
catch (...) {
|
||||||
PERR("Could not open file \"%s\"", filename);
|
PERR("Could not open ROM session for module \"%s\"", module_name);
|
||||||
throw Rom_connection_failed();
|
throw Rom_connection_failed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ compare_output_to {
|
||||||
[init -> test-ldso] Catch exceptions in program
|
[init -> test-ldso] Catch exceptions in program
|
||||||
[init -> test-ldso] ---------------------------
|
[init -> test-ldso] ---------------------------
|
||||||
[init -> test-ldso] exception in remote procedure call:
|
[init -> test-ldso] exception in remote procedure call:
|
||||||
[init -> test-ldso] Could not open file "unknown_file"
|
[init -> test-ldso] Could not open ROM session for module "unknown_file"
|
||||||
[init -> test-ldso] caught
|
[init -> test-ldso] caught
|
||||||
[init -> test-ldso] exception in program: caught
|
[init -> test-ldso] exception in program: caught
|
||||||
[init -> test-ldso] exception in shared lib: caught
|
[init -> test-ldso] exception in shared lib: caught
|
||||||
|
|
Loading…
Reference in New Issue