From ac171747cdf11f6dbc8f15e11bb3400ba47d2fc1 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 11 Feb 2019 15:23:36 +0100 Subject: [PATCH] sur: clean up error messages --- matlab/ols/sur.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/ols/sur.m b/matlab/ols/sur.m index a65920e3d..3ece09ede 100644 --- a/matlab/ols/sur.m +++ b/matlab/ols/sur.m @@ -82,9 +82,9 @@ if ~isempty(param_names) if isempty(pidxs(i)) if ~isempty(eqtags) error(['Could not find ' param_names{i} ... - ' in the provided equations specified by ' strjoin(eqtags, ',')]); + ' in the equations specified by ' strjoin(eqtags, ',')]); end - error('Unspecified error. Please report'); + error('Couldn''t find parameter in equations'); end end subcols = setdiff(1:X.vobs, pidxs);