diff options
author | Jürg Billeter <j@bitron.ch> | 2010-02-06 14:25:41 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-06-08 09:47:21 +0200 |
commit | 31cb78817cb9cc87c18f0d9b12e6a4efa4ec5222 (patch) | |
tree | 7155b0f38b83eec46ec6b2c46fa6d976e7f28c38 /vala/valathrowstatement.vala | |
parent | b402c6bfd4e0089cea3484a42d70f413eef15651 (diff) | |
download | vala-31cb78817cb9cc87c18f0d9b12e6a4efa4ec5222.tar.gz |
dova: Add initial support for error handling
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r-- | vala/valathrowstatement.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valathrowstatement.vala b/vala/valathrowstatement.vala index 2a90ba37e..e3d5da9eb 100644 --- a/vala/valathrowstatement.vala +++ b/vala/valathrowstatement.vala @@ -1,6 +1,6 @@ /* valathrowstatement.vala * - * Copyright (C) 2007-2009 Jürg Billeter + * Copyright (C) 2007-2010 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -94,7 +94,7 @@ public class Vala.ThrowStatement : CodeNode, Statement { return false; } - if (!(error_expression.value_type is ErrorType)) { + if (analyzer.context.profile == Profile.GOBJECT && !(error_expression.value_type is ErrorType)) { Report.error (error_expression.source_reference, "`%s' is not an error type".printf (error_expression.value_type.to_string ())); error = true; return false; |