Skip to content

Commit dbfcb79

Browse files
committed
Remove print_error
1 parent d130bbb commit dbfcb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/local/backup/backup_lifecycle_workflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function execute() {
7171
make_temp_directory('lifecycle');
7272
$this->tempfilename = $CFG->tempdir .'/lifecycle/'. md5(sesskey().microtime());
7373
if (!$handle = fopen($this->tempfilename, 'w+b')) {
74-
print_error('cannotcreatetempdir');
74+
throw new \moodle_exception('cannotcreatetempdir');
7575
}
7676
$this->writer = new \XMLWriter();
7777
$this->writer->openMemory();

0 commit comments

Comments
 (0)