message() -> stderr.printf()
This commit is contained in:
parent
a8a1e2c66b
commit
9b11bca35b
|
@ -36,13 +36,13 @@ namespace GObject {
|
||||||
public override bool load () {
|
public override bool load () {
|
||||||
module = GLib.Module.open (path, GLib.ModuleFlags.BIND_LAZY);
|
module = GLib.Module.open (path, GLib.ModuleFlags.BIND_LAZY);
|
||||||
if (null == module) {
|
if (null == module) {
|
||||||
message ("Module '%s' not found", path);
|
stderr.printf("Cannot load module %s\n", path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void * plugin_init = null;
|
void * plugin_init = null;
|
||||||
if (! module.symbol ("plugin_init", out plugin_init)) {
|
if (! module.symbol ("plugin_init", out plugin_init)) {
|
||||||
message ("No such symbol: plugin_init in module " + path);
|
stderr.printf("No such symbol: plugin_init in %s\n", path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue