diff --git a/Source/Plugins/VisplaneExplorer/VPOManager.cs b/Source/Plugins/VisplaneExplorer/VPOManager.cs index 44827c0ad0e36aaec70a7634e94d03450d3c9e4a..58ff5f0e72afa85a5254eeee19ce5602bc83b8d3 100755 --- a/Source/Plugins/VisplaneExplorer/VPOManager.cs +++ b/Source/Plugins/VisplaneExplorer/VPOManager.cs @@ -102,8 +102,8 @@ namespace CodeImp.DoomBuilder.Plugins.VisplaneExplorer // Load the map bool isHexen = General.Map.HEXEN; - if(VPO_LoadWAD(context, filename) != 0) throw new Exception("VPO is unable to read this file."); - if(VPO_OpenMap(context, mapname, ref isHexen) != 0) throw new Exception("VPO is unable to open this map."); + if(VPO_LoadWAD(context, filename) != 0) throw new Exception("VPO is unable to read this file:" + (VPO_GetError(context) ?? "<unknown error>")); + if(VPO_OpenMap(context, mapname, ref isHexen) != 0) throw new Exception("VPO is unable to open this map:" + (VPO_GetError(context) ?? "<unknown error>")); VPO_OpenDoorSectors(context, BuilderPlug.InterfaceForm.OpenDoors ? 1 : -1); //mxd // Processing