aboutsummaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2022-12-03 20:02:17 +0100
committerJulian Hurst <ark@mansus.space>2022-12-03 20:02:17 +0100
commit1edfb56af19905fb30961ee8162afe8e1719b400 (patch)
treed47603488eda49d1b401be0d5d164f56b1db9b54 /main.ha
parent4fa5bdff20cfd1dcceae402377b0c38e058ff512 (diff)
downloadilhare-1edfb56af19905fb30961ee8162afe8e1719b400.tar.gz
Handle the error from strings::fromutf8 calls
This fix just uses an error assertion operator to handle the error from strings::fromutf8
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.ha b/main.ha
index b0e7db2..40718e6 100644
--- a/main.ha
+++ b/main.ha
@@ -79,7 +79,7 @@ export fn main() void = {
fmt::fatal(io::strerror(e));
};
defer free(in);
- let sin = strings::fromutf8(in);
+ let sin = strings::fromutf8(in)!;
sin = strings::trim(sin, '\n');
let items = strings::split(sin, "\n"); // freed by list::finish
itemscopy = strings::dupall(items);