Merge pull request #4 from ctiller/vasprint

Fix compile: check return value for error