Skip to content

Commit

Permalink
fixes #441
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Feb 4, 2016
1 parent 007984b commit 357bda8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ class Model
public function __construct($config)
{
$this->global_config = $config;
$this->initializeVocabularies();
$this->initializeNamespaces();
try {
$this->initializeVocabularies();
$this->initializeNamespaces();
} catch (Exception $e) {
header("HTTP/1.0 404 Not Found");
echo("Error: Vocabularies configuration file 'vocabularies.ttl' not found.");
return;
}
}

/**
Expand Down

0 comments on commit 357bda8

Please sign in to comment.