Merge pull request #846 from glacambre/make_guiset_error_message_easier_to_understand

excmds.ts: Actually make guiset error message easier to understand
This commit is contained in:
Oliver Blanthorn 2018-07-22 17:59:06 +01:00 committed by GitHub
commit 58dafc685a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,10 +206,8 @@ import * as css_util from "./css_util"
*/
//#background
export async function guiset_quiet(rule: string, option: string) {
if (!rule || !option) {
fillcmdline(":guiset requires two arguments. See `:help guiset` for more information.")
return
}
if (!rule || !option)
throw new Error(":guiset requires two arguments. See `:help guiset` for more information.")
// Could potentially fall back to sending minimal example to clipboard if native not installed
// Check for native messenger and make sure we have a plausible profile directory