Project

General

Profile

Actions

Feature #501

closed

Better handling of error upon template rendering

Added by Justin Sherrill over 13 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently the error message when a rendering fails isn't very good and is ugly. We should make it better, especially when spoofing is used.

Actions #1

Updated by Ohad Levy almost 13 years ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Greg Sutcliffe about 8 years ago

  • Description updated (diff)
  • Status changed from New to Resolved

This is much better now - both the preview from the Host page and the in-editor preview will correctly show errors. Eg I created a template of "<%= nosuchvar%>" and tried to preview it:

There was an error rendering the Basic gPXE bugday template: undefined local variable or method `nosuchvar' for #<#<Class:0x007f8ca1d74e90>:0x007f8ca1d87888>

Seems fine, re-open if there's more :P

Actions

Also available in: Atom PDF