1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-12 23:45:47 +01:00

Add liberator.assert.

This commit is contained in:
Kris Maglione
2009-11-03 02:36:48 -05:00
parent 34e9b10fb9
commit 1ce498401e
13 changed files with 154 additions and 152 deletions

View File

@@ -640,8 +640,9 @@ liberator.registerObserver("load_commands", function () {
if (scheme == "default")
highlight.clear();
else if (!io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
return void liberator.echoerr("E185: Cannot find color scheme " + scheme);
else
liberator.assert(!io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]),
"E185: Cannot find color scheme " + scheme);
autocommands.trigger("ColorScheme", { name: scheme });
},
{