SEBA-705 Wrap all gRPC methods;
translate permission errors;
print prefix only when emitting final error message
Change-Id: I3cbb0cf8f321c965d11354cc01491f2b3c0dc1b3
diff --git a/commands/models.go b/commands/models.go
index e539bd9..e413178 100644
--- a/commands/models.go
+++ b/commands/models.go
@@ -162,9 +162,9 @@
func UpdateModelStatusOutput(output *ModelStatusOutput, i int, id interface{}, status string, err error, final bool) {
if err != nil {
if output.Unbuffered {
- fmt.Printf("%v: %s\n", id, HumanReadableError(err))
+ fmt.Printf("%v: %s\n", id, err)
}
- output.Rows[i] = ModelStatusOutputRow{Id: id, Message: HumanReadableError(err)}
+ output.Rows[i] = ModelStatusOutputRow{Id: id, Message: err.Error()}
} else {
if output.Unbuffered && final {
fmt.Println(id)