use file.log.deprecate instead of throwing an error - fixes #1694

This commit is contained in:
Sebastian McKenzie 2015-06-05 22:35:46 +01:00
parent 4b85b05839
commit 0f4ea2d2a6

View File

@ -115,7 +115,7 @@ export default class File {
if (!val && option.optional) continue;
if (val && option.deprecated) {
throw new Error("Deprecated option " + key + ": " + option.deprecated);
this.log.deprecate("Deprecated option " + key + ": " + option.deprecated);
}
if (val == null) {