message() -> stderr.printf()

This commit is contained in:
Kolan Sh 2018-06-21 15:31:39 +03:00
parent a8a1e2c66b
commit 9b11bca35b
1 changed files with 2 additions and 2 deletions

View File

@ -36,13 +36,13 @@ namespace GObject {
public override bool load () {
module = GLib.Module.open (path, GLib.ModuleFlags.BIND_LAZY);
if (null == module) {
message ("Module '%s' not found", path);
stderr.printf("Cannot load module %s\n", path);
return false;
}
void * plugin_init = null;
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;
}