Skip to content

Commit

Permalink
Don't handle YAML errors stupidly
Browse files Browse the repository at this point in the history
HAVING A FALLBACK DOES NOT MEAN THERE ISN'T AN ERROR D:<
  • Loading branch information
mcmonkey4eva committed Jan 13, 2015
1 parent ac3207a commit 825af35
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -454,10 +454,11 @@ public void yaml(ReplaceableTagEvent event) {
String path = event.getTypeContext();

// Check if there is a yaml file loaded with the specified id
if (!yamls.containsKey(id)
&& !attribute.hasAlternative()) {
dB.echoError("YAML tag '" + event.raw_tag + "' has specified an invalid ID, or the specified id has already" +
" been closed. Tag replacement aborted. ID given: '" + id + "'.");
if (!yamls.containsKey(id)) {
if (!attribute.hasAlternative()) {
dB.echoError("YAML tag '" + event.raw_tag + "' has specified an invalid ID, or the specified id has already" +
" been closed. Tag replacement aborted. ID given: '" + id + "'.");
}
return;
}

Expand Down

0 comments on commit 825af35

Please sign in to comment.