Wrap string values in quotes

All other types are formatted as as <type: param>
This commit is contained in:
Andrew Clark
2017-08-25 10:37:46 -07:00
parent 55263b96ed
commit 853ef73962
+3 -3
View File
@@ -1380,17 +1380,17 @@ function RendererResult({version, result, defaultValue, didWarn, didError}) {
displayResult = '<symbol>';
break;
case 'number':
displayResult = `<Number: ${result}>`;
displayResult = `<number: ${result}>`;
break;
case 'string':
if (result === '') {
displayResult = '<empty string>';
break;
}
displayResult = result;
displayResult = '"' + result + '"';
break;
case 'boolean':
displayResult = `<Boolean: ${result}>`;
displayResult = `<boolean: ${result}>`;
break;
default:
throw new Error('Switch statement should be exhaustive.');