Skip to content

Commit

Permalink
Merge branch 'master' into hubbub-ca
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes authored Oct 3, 2023
2 parents bc6f0cf + 20c0d8a commit 0663c99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sourcecode/apis/contentauthor/app/Libraries/H5P/Framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use App\Libraries\H5P\Interfaces\CerpusStorageInterface;
use App\Libraries\H5P\Interfaces\H5PAdapterInterface;
use App\Libraries\H5P\Interfaces\Result;
use Exception;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions;
Expand Down Expand Up @@ -862,6 +863,15 @@ public function loadLibrarySemantics($machineName, $majorVersion, $minorVersion)
->select('semantics')
->first();

if (!$row) {
throw new Exception(sprintf(
'Could not load library semantics for %s-%d.%d',
$machineName,
$majorVersion,
$minorVersion,
));
}

return $row['semantics'];
}

Expand Down

0 comments on commit 0663c99

Please sign in to comment.