Skip to content

Commit aac252d

Browse files
author
David Nahodyl
committed
improved error message when layout is missing
1 parent 54f5170 commit aac252d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Services/FileMakerConnection.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,12 @@ protected function checkResponseForErrors($response)
146146
case 952:
147147
// API token is expired. We should expire it in the cache so it isn't used again.
148148
$this->forgetSessionToken();
149-
return;
149+
break;
150+
case 105:
151+
// Layout is missing error
152+
// Add the layout name to the message for clarity
153+
$message = $message['message'] . ": " . $this->layout;
154+
throw new FileMakerDataApiException($message, $code);
150155
default:
151156
throw new FileMakerDataApiException($message['message'], $code);
152157
}

0 commit comments

Comments
 (0)