Commit f8d092c
fix(cpu-template-helper): Don't show error message twice
The CPU template helper tool showed its error message twice as follows:
```
$cpu-template-helper fingerprint compare --prev A.json --curr B.json
Difference detected between source and target:\\n{
"name": "kernel_version",
"prev": "5.10.215-203.850.amzn2.x86_64",
"curr": "6.1.84-99.169.amzn2023.x86_64"
}
Error: FingerprintCompare(DiffDetected("{\n \"name\": \"kernel_..."))
```
It is because it returned `Result` from `main()` to return an exit code
and it shows its error message on error. Instead just return the exit
code using `std::process::exit()`.
Signed-off-by: Takahiro Itazuri <[email protected]>1 parent afad05d commit f8d092c
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments