Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Improve exception message info
Browse files Browse the repository at this point in the history
  • Loading branch information
chiquitinxx committed May 24, 2015
1 parent ed8d275 commit 0b92681
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/groovy/org/grooscript/GrooScript.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ class GrooScript {
)
return reqJs.convert(initialFile, destinationFolder, options)
} catch (Throwable e) {
throw new GrooScriptException("Error converting ${initialFile} to require.js modules")
throw new GrooScriptException(
"Error converting ${initialFile} to require.js modules. Exception: ${e.message}")
}
}
}

0 comments on commit 0b92681

Please sign in to comment.