From 099841305881102bc6482006f65848efd3d65479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Moreno?= Date: Mon, 23 Jul 2018 17:23:23 +0200 Subject: [PATCH] build: check glib-compile-resources command output --- fractal-gtk/build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fractal-gtk/build.rs b/fractal-gtk/build.rs index 11ec44a8..2ee7a5fa 100644 --- a/fractal-gtk/build.rs +++ b/fractal-gtk/build.rs @@ -6,11 +6,12 @@ use std::io::Write; fn main() { // Compile Gresource - Command::new("glib-compile-resources") + let out = Command::new("glib-compile-resources") .args(&["--generate", "resources.xml"]) .current_dir("res") .status() - .unwrap(); + .expect("failed to generate resources"); + assert!(out.success()); // Generating build globals let default_locales = "./fractal-gtk/po".to_string();