Changed exception to ResourceNotFound and printed the passed block name