Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1045016

Browse files
authored
Merge pull request #136 from wulfsolter/patch-1
Throw legible error when failing Value.getType()
2 parents 9d8a020 + 822c314 commit 1045016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/doc/cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ var Value = {
753753
return Cell.Types.SharedString;
754754
} else {
755755
//console.log('Error: value=' + value + ', type=' + typeof value)
756-
throw new Error('I could not understand type of value: ');
756+
throw new Error('Could not understand type of value: ' + JSON.stringify(value) + ' - typeof: ' + typeof value);
757757
}
758758
},
759759

0 commit comments

Comments
 (0)