File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ local component = require 'lgi.component'
20
20
local record = require ' lgi.record'
21
21
local ffi = require ' lgi.ffi'
22
22
local ti = ffi .types
23
- local GObject = gi .require ' GObject'
23
+ local GObject = assert ( gi .require ( ' GObject' ))
24
24
25
25
-- Implementation of class and interface component loading.
26
26
local class = {
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ local record = require 'lgi.record'
21
21
22
22
local ffi = {}
23
23
24
- local gobject = gi .require (' GObject' )
25
- local glib = gi .require (' GLib' )
24
+ local gobject = assert ( gi .require (' GObject' ) )
25
+ local glib = assert ( gi .require (' GLib' ) )
26
26
27
27
-- Gather all basic types. We have to 'steal' them from well-known
28
28
-- declarations, because girepository API does not allow synthesizing
You can’t perform that action at this time.
0 commit comments