lib: update users of the new `print_error`
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 9 May 2015 03:36:25 +0000 (23:36 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 9 May 2015 13:40:03 +0000 (09:40 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/linux/linux_data_store.nit
lib/mnit/assets.nit
lib/mnit_linux/linux_assets.nit

index 4393f4a..3925e39 100644 (file)
@@ -51,7 +51,7 @@ private class LinuxStore
                # Open DB connection
                db = new Sqlite3DB.open(db_path)
                if not db.is_open then
-                       app.log_error "Data store unavaible, cannot load/save data. (at '{db_path}' with '{db.error or else "unknown"}')"
+                       print_error "Data store unavaible, cannot load/save data. (at '{db_path}' with '{db.error or else "unknown"}')"
                        return null
                end
 
index f0d1892..d46b5e4 100644 (file)
@@ -42,7 +42,7 @@ redef class App
        do
                var asset = try_loading_asset( id )
                if asset == null then # error
-                       log_error( "asset <{id}> could not be loaded." )
+                       print_error "asset <{id}> could not be loaded."
                        abort
                else
                        return asset
@@ -57,7 +57,7 @@ redef class App
                if asset isa Image then
                        return asset
                else
-                       log_error( "asset <{id}> is not an image." )
+                       print_error "asset <{id}> is not an image."
                        abort
                end
        end
index 6749d30..393b77d 100644 (file)
@@ -33,7 +33,7 @@ redef class App
        do
                var path = "{assets_dir}/{id}"
                if not path.file_exists then
-                       log_error( "asset <{id}> does not exists." )
+                       print_error "asset <{id}> does not exists."
                        exit(1)
                        abort
                else