From 0a611266ce86de6efecd7ff7533b7ee202074545 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sat, 24 Aug 2019 08:31:14 +1200 Subject: [PATCH] Clean up error text --- src/commands/get.rs | 4 ++-- src/commands/pick.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/get.rs b/src/commands/get.rs index 7dc079089..37dba702b 100644 --- a/src/commands/get.rs +++ b/src/commands/get.rs @@ -38,8 +38,8 @@ fn get_member(path: &Tagged, obj: &Tagged) -> Result return Ok(v.clone()), None => { return Err(ShellError::labeled_error( - "Unknown field", - "object missing field", + "Unknown column", + "table missing column", path.span(), )); } diff --git a/src/commands/pick.rs b/src/commands/pick.rs index dbebff063..bee63ecdf 100644 --- a/src/commands/pick.rs +++ b/src/commands/pick.rs @@ -35,7 +35,7 @@ fn pick( ) -> Result { if fields.len() == 0 { return Err(ShellError::labeled_error( - "Pick requires fields", + "Pick requires columns to pick", "needs parameter", name, ));