Skip to content

Commit 6d71ffe

Browse files
author
Szymon Olewniczak
committed
fix: proper error handling
1 parent b193f1e commit 6d71ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helper/lookup.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function run($fields, $thanks, $argv) {
3838
if (!$access instanceof AccessTableLookup) continue;
3939

4040
if(!$access->getSchema()->isEditable()) {
41-
throw new StructException('lookup save error: no permission for schema');
41+
msg('lookup save error: no permission for schema', -1);
42+
return false;
4243
}
4344
$validator = $access->getValidator($data);
4445
if($validator->validate()) {

0 commit comments

Comments
 (0)