From afbf03722cae08f610d53e02efb68b6ea6f35cc2 Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Thu, 26 Jul 2018 10:02:45 -0400 Subject: Add information to option type errors Print the expected and actual types for the option value (which is one of bool, int, or string). --- test-suite/output/BadOptionValueType.out | 8 ++++++++ test-suite/output/BadOptionValueType.v | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 test-suite/output/BadOptionValueType.out create mode 100644 test-suite/output/BadOptionValueType.v (limited to 'test-suite') diff --git a/test-suite/output/BadOptionValueType.out b/test-suite/output/BadOptionValueType.out new file mode 100644 index 0000000000..34d8518a75 --- /dev/null +++ b/test-suite/output/BadOptionValueType.out @@ -0,0 +1,8 @@ +The command has indeed failed with message: +Bad type of value for this option: expected int, got string. +The command has indeed failed with message: +Bad type of value for this option: expected bool, got string. +The command has indeed failed with message: +Bad type of value for this option: expected bool, got int. +The command has indeed failed with message: +Bad type of value for this option: expected bool, got int. diff --git a/test-suite/output/BadOptionValueType.v b/test-suite/output/BadOptionValueType.v new file mode 100644 index 0000000000..b61c3757ba --- /dev/null +++ b/test-suite/output/BadOptionValueType.v @@ -0,0 +1,4 @@ +Fail Set Default Timeout "2". +Fail Set Debug Eauto "yes". +Fail Set Debug Eauto 1. +Fail Set Implicit Arguments 1. -- cgit v1.2.3