diff options
author | Tyler Mauthe <me@tylermauthe.com> | 2016-12-09 00:39:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-09 00:39:35 -0800 |
commit | 953e16c254d8108167e391cc2104b9dffc725536 (patch) | |
tree | 9e8b8139d9bfa3cfc51221182d2607aa2be173f4 /lib/dashing | |
parent | fe9af96a66df3e062a1e7602732dd8bbb3d885e2 (diff) | |
parent | 1315cac7c303429bdfc56ef061d98b158bf67b4d (diff) |
Merge pull request #27 from jtheoof/master
add error string when widget not rendered
Diffstat (limited to 'lib/dashing')
-rw-r--r-- | lib/dashing/app.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dashing/app.rb b/lib/dashing/app.rb index b11352d..0ff3085 100644 --- a/lib/dashing/app.rb +++ b/lib/dashing/app.rb @@ -121,6 +121,7 @@ get '/views/:widget?.html' do file = File.join(settings.root, "widgets", params[:widget], "#{params[:widget]}.#{suffix}") return engines.first.new(file).render if File.exist? file end + "Drats! Unable to find a widget file named: #{params[:widget]} to render." end Thin::Server.class_eval do |