29 lines
859 B
Diff
29 lines
859 B
Diff
|
From b202062325e92bce865ad48b1e6d9f29b01ade6b Mon Sep 17 00:00:00 2001
|
||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||
|
Date: Fri, 2 Sep 2022 12:04:46 +0100
|
||
|
Subject: [PATCH 08/12] src/ph_pacman.ml: Use error function instead of
|
||
|
failwith
|
||
|
|
||
|
Slightly nicer output and a bit easier to use because it supports
|
||
|
printf-style formatting.
|
||
|
---
|
||
|
src/ph_pacman.ml | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/ph_pacman.ml b/src/ph_pacman.ml
|
||
|
index 44445a6..25ef4fc 100644
|
||
|
--- a/src/ph_pacman.ml
|
||
|
+++ b/src/ph_pacman.ml
|
||
|
@@ -88,7 +88,7 @@ let pacman_package_of_string str =
|
||
|
epoch, version, release
|
||
|
with
|
||
|
Failure _ ->
|
||
|
- failwith ("failed to parse epoch:version-release field " ^ evr) in
|
||
|
+ error "failed to parse epoch:version-release field: %s " evr in
|
||
|
|
||
|
{ name = name;
|
||
|
epoch = epoch;
|
||
|
--
|
||
|
2.37.3
|
||
|
|