Browse Source

Show errors when loading 'units::currencies' module

David Peter 2 years ago
parent
commit
91cb56bc8c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      numbat/src/lib.rs

+ 2 - 3
numbat/src/lib.rs

@@ -425,12 +425,11 @@ impl Context {
                             }
                         }
 
-                        self.interpret_with_settings(
+                        let _ = self.interpret_with_settings(
                             &mut no_print_settings,
                             "use units::currencies",
                             CodeSource::Internal,
-                        )
-                        .ok();
+                        )?;
 
                         // Make sure we do not run into an infinite loop in case loading that
                         // module did not bring in the required currency unit identifier. This