-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from talview/DEL-2805
Stop candidate workflow in case of error
- Loading branch information
Showing
8 changed files
with
2,048 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
build export-ignore | ||
# build export-ignore | ||
.github export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
.vagrant | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,8 @@ | |
defined('MOODLE_INTERNAL') || die(); | ||
|
||
require_once($CFG->libdir . '/pagelib.php'); | ||
require_once($CFG->dirroot . '/local/proview/vendor/autoload.php'); | ||
\Sentry\init(['dsn' => 'https://[email protected]/5304587' ]); | ||
|
||
/** | ||
* Class injector | ||
|
@@ -124,8 +126,15 @@ public static function inject() { | |
$t = new api\tracker(); | ||
$t::insert_tracking(); | ||
return ; | ||
} catch (Exception $error){ | ||
self::inject_password($PAGE, $quiz); | ||
} catch (\Throwable $error){ | ||
\Sentry\captureException($error); | ||
?> | ||
<script> | ||
document.body.style.margin='0px'; | ||
document.body.innerHTML=`<iframe id="errorIFrame" src='https://pages.talview.com/proview/error/index.html' title="Proview Error" style="width: 100%; height:100%; border: 0px;"><p>Your browser does not support iframes</p></iframe>`; | ||
</script> | ||
<?php | ||
die; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.