Skip to content

Commit ccc1351

Browse files
committed
Tweak wording of no gen at slack error.
1 parent 0e89a7c commit ccc1351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/+mp/mm_shared_pfcpf_ac.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@
110110
if size(i, 2) > 1, i = i'; j = j'; end
111111
ij = sortrows([i j]); %% 1st state comes 1st for each node
112112

113-
%% check if ij is empty (no generators in slack node)
113+
%% check for slack node with no generator
114114
if isempty(ij)
115-
error('No generator found in the slack node. Ensure at least one generator is connected to the slack bus.');
115+
error('mp.mm_shared_pfcpf_ac: No generator at slack node. At least one generator must be connected to slack node.');
116116
end
117117

118118
[~, k1] = unique(ij(:, 1), 'first');%% index of 1st entry for each node

0 commit comments

Comments
 (0)